diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 1996-09-01 19:41:26 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 1996-09-01 19:41:26 +0000 |
commit | 98ae088ed20cceacace5a6f78cb9b736eb04d8f5 (patch) | |
tree | 67b06c01886a05a8bf28e0afca717a4b2cd7b0f9 /sys/arch/i386/isa/pccons.c | |
parent | f9d56c509b8d7aa6d8d0ef702a17eb9021c3b26b (diff) |
distinguish between left/right shift keys for X; from Mathieu.Herrb@mipnet.fr
Diffstat (limited to 'sys/arch/i386/isa/pccons.c')
-rw-r--r-- | sys/arch/i386/isa/pccons.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/sys/arch/i386/isa/pccons.c b/sys/arch/i386/isa/pccons.c index 9bc45f0fe0d..6f343d619ae 100644 --- a/sys/arch/i386/isa/pccons.c +++ b/sys/arch/i386/isa/pccons.c @@ -1,4 +1,4 @@ -/* $OpenBSD: pccons.c,v 1.26 1996/09/01 16:39:59 deraadt Exp $ */ +/* $OpenBSD: pccons.c,v 1.27 1996/09/01 19:40:56 deraadt Exp $ */ /* $NetBSD: pccons.c,v 1.99.4.1 1996/06/04 20:03:53 cgd Exp $ */ /*- @@ -1441,6 +1441,8 @@ sput(cp, n) async_update(); } +/* the unshifted code for KB_SHIFT keys is used by X to distinguish between + left and right shift when reading the keyboard map */ static pccons_keymap_t scan_codes[KB_NUM_KEYS] = { /* type unshift shift control altgr shift_altgr scancode */ KB_NONE, "", "", "", "", "", /* 0 unused */ @@ -1485,7 +1487,7 @@ static pccons_keymap_t scan_codes[KB_NUM_KEYS] = { KB_ASCII, ";", ":", ";", "", "", /* 39 ; */ KB_ASCII, "'", "\"", "'", "", "", /* 40 ' */ KB_ASCII, "`", "~", "`", "", "", /* 41 ` */ - KB_SHIFT, "", "", "", "", "", /* 42 shift */ + KB_SHIFT, "\001", "", "", "", "", /* 42 shift */ KB_ASCII, "\\", "|", "\034", "", "", /* 43 \ */ KB_ASCII, "z", "Z", "\032", "", "", /* 44 z */ KB_ASCII, "x", "X", "\030", "", "", /* 45 x */ @@ -1497,7 +1499,7 @@ static pccons_keymap_t scan_codes[KB_NUM_KEYS] = { KB_ASCII, ",", "<", "<", "", "", /* 51 , */ KB_ASCII, ".", ">", ">", "", "", /* 52 . */ KB_ASCII, "/", "?", "\037", "", "", /* 53 / */ - KB_SHIFT, "", "", "", "", "", /* 54 shift */ + KB_SHIFT, "\002", "", "", "", "", /* 54 shift */ KB_KP, "*", "*", "*", "", "", /* 55 kp * */ KB_ALT, "", "", "", "", "", /* 56 alt */ KB_ASCII, " ", " ", "\000", "", "", /* 57 space */ |