summaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorMiod Vallat <miod@cvs.openbsd.org>2010-08-28 12:49:58 +0000
committerMiod Vallat <miod@cvs.openbsd.org>2010-08-28 12:49:58 +0000
commitbeaef3d32f22edf7237e1f49ba01d00ba61af940 (patch)
tree8e7a7a8f9156a34f2c11fb3f85adbf65b348ad4a /sys
parentf7cf4d10949f12edbb81d9835b916e5b64a064a4 (diff)
In pckbd_scancode_translate(), correctly translate the break sequence
between scan code sets 1 and 2.
Diffstat (limited to 'sys')
-rw-r--r--sys/dev/pckbc/pckbd.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/dev/pckbc/pckbd.c b/sys/dev/pckbc/pckbd.c
index e0304d21766..ff2644a80bf 100644
--- a/sys/dev/pckbc/pckbd.c
+++ b/sys/dev/pckbc/pckbd.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: pckbd.c,v 1.27 2010/07/22 14:26:38 deraadt Exp $ */
+/* $OpenBSD: pckbd.c,v 1.28 2010/08/28 12:49:57 miod Exp $ */
/* $NetBSD: pckbd.c,v 1.24 2000/06/05 22:20:57 sommerfeld Exp $ */
/*-
@@ -769,7 +769,7 @@ pckbd_scancode_translate(struct pckbd_internal *id, int datain)
if (id->t_extended1 == 2 && datain == 0x14)
return 0x1d | id->t_releasing;
else if (id->t_extended1 == 1 && datain == 0x77)
- return 0x77 | id->t_releasing;
+ return 0x45 | id->t_releasing;
if (id->t_extended != 0) {
if (datain >= sizeof pckbd_xtbl_ext)
@@ -848,7 +848,7 @@ pckbd_decode(id, datain, type, dataout)
} else {
/* Always ignore typematic keys */
if (key == id->t_lastchar)
- return(0);
+ return 0;
id->t_lastchar = key;
*type = WSCONS_EVENT_KEY_DOWN;
}