Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/netbsd-2-0]: src/sys/arch/hp300/dev Pullup rev 1.63 (requested by tsutsu...
details: https://anonhg.NetBSD.org/src/rev/4bc55be957a4
branches: netbsd-2-0
changeset: 561256:4bc55be957a4
user: jmc <jmc%NetBSD.org@localhost>
date: Tue Jun 01 04:37:34 2004 +0000
description:
Pullup rev 1.63 (requested by tsutsui in ticket #430)
Handle CAPSLOCK correctly. PR#4689
diffstat:
sys/arch/hp300/dev/ite.c | 15 ++++++++-------
1 files changed, 8 insertions(+), 7 deletions(-)
diffs (39 lines):
diff -r 9220705f61d6 -r 4bc55be957a4 sys/arch/hp300/dev/ite.c
--- a/sys/arch/hp300/dev/ite.c Tue Jun 01 04:35:17 2004 +0000
+++ b/sys/arch/hp300/dev/ite.c Tue Jun 01 04:37:34 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.62.2.1 2004/06/01 04:37:34 jmc 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.62.2.1 2004/06/01 04:37:34 jmc 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