diff options
author | 2014-03-16 10:32:31 +0000 | |
---|---|---|
committer | 2014-03-16 10:32:31 +0000 | |
commit | 3990d4b3a192879bfecbb63bf5e5161d607cd8b5 (patch) | |
tree | f540461b4719a92ba0cedf73d4e4f50921e37617 | |
parent | tweak the Nd, for consistency; (diff) | |
download | wireguard-openbsd-3990d4b3a192879bfecbb63bf5e5161d607cd8b5.tar.xz wireguard-openbsd-3990d4b3a192879bfecbb63bf5e5161d607cd8b5.zip |
Don't use volume keys when in raw-mode (this doesn't work), and let
Xorg driver do the translation and handle them as regular keys. Fixes
confusion caused by the volume being changed twice in contradictory
ways: once by X programs and once by the ukbd(4) driver.
ok ratchov@
-rw-r--r-- | sys/dev/usb/hidkbd.c | 18 |
1 files changed, 1 insertions, 17 deletions
diff --git a/sys/dev/usb/hidkbd.c b/sys/dev/usb/hidkbd.c index b04dd1294ad..06d0976a6a8 100644 --- a/sys/dev/usb/hidkbd.c +++ b/sys/dev/usb/hidkbd.c @@ -1,4 +1,4 @@ -/* $OpenBSD: hidkbd.c,v 1.8 2013/04/22 15:10:56 deraadt Exp $ */ +/* $OpenBSD: hidkbd.c,v 1.9 2014/03/16 10:32:31 mpi Exp $ */ /* $NetBSD: ukbd.c,v 1.85 2003/03/11 16:44:00 augustss Exp $ */ /* @@ -425,22 +425,6 @@ hidkbd_decode(struct hidkbd *kbd, struct hidkbd_data *ud) } s = spltty(); wskbd_rawinput(kbd->sc_wskbddev, cbuf, j); - - /* - * Pass audio keys to wskbd_input anyway. - */ - for (i = 0; i < nkeys; i++) { - key = ibuf[i]; - switch (key & CODEMASK) { - case 127: - case 128: - case 129: - wskbd_input(kbd->sc_wskbddev, - key & RELEASE ? WSCONS_EVENT_KEY_UP : - WSCONS_EVENT_KEY_DOWN, key & CODEMASK); - break; - } - } splx(s); return; |