diff options
| author | martin <martin@NetBSD.org> | 2005-06-07 10:29:08 +0000 |
|---|---|---|
| committer | martin <martin@NetBSD.org> | 2005-06-07 10:29:08 +0000 |
| commit | 1ee0840364dad2ab3d65677fa2dca78c2340044f (patch) | |
| tree | 6b95820610e0f368402a1c462ea01af35a39ca17 /sys/dev/sun | |
| parent | 90d4762740b68215d193176c565d45c981fe87d6 (diff) | |
Do not bother to post "keyboard idle" events to userland when we are
in wskbd raw input mode.
Diffstat (limited to 'sys/dev/sun')
| -rw-r--r-- | sys/dev/sun/kbd.c | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/sys/dev/sun/kbd.c b/sys/dev/sun/kbd.c index 60057be315d..3c141ccb69a 100644 --- a/sys/dev/sun/kbd.c +++ b/sys/dev/sun/kbd.c @@ -1,4 +1,4 @@ -/* $NetBSD: kbd.c,v 1.48 2005/05/17 06:18:31 martin Exp $ */ +/* $NetBSD: kbd.c,v 1.49 2005/06/07 10:29:08 martin Exp $ */ /* * Copyright (c) 1992, 1993 @@ -47,7 +47,7 @@ */ #include <sys/cdefs.h> -__KERNEL_RCSID(0, "$NetBSD: kbd.c,v 1.48 2005/05/17 06:18:31 martin Exp $"); +__KERNEL_RCSID(0, "$NetBSD: kbd.c,v 1.49 2005/06/07 10:29:08 martin Exp $"); #include <sys/param.h> #include <sys/systm.h> @@ -954,8 +954,11 @@ kbd_input_wskbd(struct kbd_softc *k, int code) if (k->k_wsraw) { u_char buf; - buf = code; - wskbd_rawinput(k->k_wskbd, &buf, 1); + /* do not bother userland with keyboard idle events */ + if (code != 0x7f) { + buf = code; + wskbd_rawinput(k->k_wskbd, &buf, 1); + } return; } #endif |
