summaryrefslogtreecommitdiff
path: root/sys/arch
diff options
context:
space:
mode:
authorMiod Vallat <miod@cvs.openbsd.org>2012-04-27 19:22:07 +0000
committerMiod Vallat <miod@cvs.openbsd.org>2012-04-27 19:22:07 +0000
commit47abad15bd544302cf3303ac37e80d9fbe910485 (patch)
treee55804c0bfd1dd211b51a1066bc949e564a0c74c /sys/arch
parentee75455c01bf0810c0c194effa9f54f48491426f (diff)
Fix the `all keys up' event handling logic to only apply to it, and not to
regular `one key is up' events. Makes the shift, alt, ctrl, etc keys behave as expected after the next keystroke.
Diffstat (limited to 'sys/arch')
-rw-r--r--sys/arch/sgi/hpc/z8530kbd.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/arch/sgi/hpc/z8530kbd.c b/sys/arch/sgi/hpc/z8530kbd.c
index 282e6fd575b..052553abf2b 100644
--- a/sys/arch/sgi/hpc/z8530kbd.c
+++ b/sys/arch/sgi/hpc/z8530kbd.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: z8530kbd.c,v 1.1 2012/04/17 22:06:33 miod Exp $ */
+/* $OpenBSD: z8530kbd.c,v 1.2 2012/04/27 19:22:06 miod Exp $ */
/* $NetBSD: zs_kbd.c,v 1.8 2008/03/29 19:15:35 tsutsui Exp $ */
/*
@@ -384,7 +384,7 @@ zskbd_wskbd_input(struct zs_chanstate *cs, uint8_t key)
return; /* why bother */
if (key & ZSKBD_KEY_UP) {
- if (key & ZSKBD_KEY_ALL_UP)
+ if ((key & ZSKBD_KEY_ALL_UP) == ZSKBD_KEY_ALL_UP)
type = WSCONS_EVENT_ALL_KEYS_UP;
else
type = WSCONS_EVENT_KEY_UP;