Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/hp300/dev Handle CAPSLOCK correctly. Fixes port-hp3...
details: https://anonhg.NetBSD.org/src/rev/aa50637fa4d8
branches: trunk
changeset: 567096:aa50637fa4d8
user: tsutsui <tsutsui%NetBSD.org@localhost>
date: Mon May 31 13:40:04 2004 +0000
description:
Handle CAPSLOCK correctly. Fixes port-hp300/4689.
diffstat:
sys/arch/hp300/dev/ite.c | 15 ++++++++-------
1 files changed, 8 insertions(+), 7 deletions(-)
diffs (39 lines):
diff -r c6755cea52d3 -r aa50637fa4d8 sys/arch/hp300/dev/ite.c
--- a/sys/arch/hp300/dev/ite.c Mon May 31 13:28:53 2004 +0000
+++ b/sys/arch/hp300/dev/ite.c Mon May 31 13:40:04 2004 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: ite.c,v 1.62 2003/11/17 14:37:59 tsutsui Exp $ */
+/* $NetBSD: ite.c,v 1.63 2004/05/31 13:40:04 tsutsui Exp $ */
/*-
* Copyright (c) 1996, 1997 The NetBSD Foundation, Inc.
@@ -119,7 +119,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: ite.c,v 1.62 2003/11/17 14:37:59 tsutsui Exp $");
+__KERNEL_RCSID(0, "$NetBSD: ite.c,v 1.63 2004/05/31 13:40:04 tsutsui Exp $");
#include "hil.h"
@@ -627,14 +627,15 @@
switch ((stat>>KBD_SSHIFT) & KBD_SMASK) {
default:
case KBD_KEY:
- if (!capsmode) {
- code = ite_km->kbd_keymap[(int)c];
- break;
- }
- /* FALLTHROUGH */
+ code = ite_km->kbd_keymap[(int)c];
+ if (capsmode)
+ code = toupper(code);
+ break;
case KBD_SHIFT:
code = ite_km->kbd_shiftmap[(int)c];
+ if (capsmode)
+ code = tolower(code);
break;
case KBD_CTRL:
Home |
Main Index |
Thread Index |
Old Index