From d0a3070c40d40e54dc7ecb2a09d742b9c8b5210f Mon Sep 17 00:00:00 2001 From: tsubai Date: Thu, 25 Jan 2001 14:08:55 +0000 Subject: [PATCH] Generate key press event and key release event when capslock is pressed. Now capslock key works correctly on X11. --- sys/arch/macppc/dev/akbd.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/sys/arch/macppc/dev/akbd.c b/sys/arch/macppc/dev/akbd.c index 14a65a3b8248..aab3dde136ec 100644 --- a/sys/arch/macppc/dev/akbd.c +++ b/sys/arch/macppc/dev/akbd.c @@ -1,4 +1,4 @@ -/* $NetBSD: akbd.c,v 1.12 2000/12/19 03:13:40 tsubai Exp $ */ +/* $NetBSD: akbd.c,v 1.13 2001/01/25 14:08:55 tsubai Exp $ */ /* * Copyright (C) 1998 Colin Wood @@ -470,6 +470,7 @@ kbd_intr(event) type = press ? WSCONS_EVENT_KEY_DOWN : WSCONS_EVENT_KEY_UP; switch (key) { + case 57: /* Caps Lock pressed */ case 185: /* Caps Lock released */ type = WSCONS_EVENT_KEY_DOWN; wskbd_input(sc->sc_wskbddev, type, val);