summaryrefslogtreecommitdiff
path: root/sys/arch/sgi/hpc/z8530kbd.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys/arch/sgi/hpc/z8530kbd.c')
-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;