From 2073104f875dcc76cebe31acd7e03957b7313398 Mon Sep 17 00:00:00 2001 From: "Andrey A. Chernov" Date: Sun, 28 May 2000 12:43:24 +0000 Subject: Manipulate with AltGR Led (really CapsLock Led) only in K_XLATE mode, because all other modes not set ALKED flag and it means that CapsLock always turned off for them. Real bug example is X11 which never turn on CapsLock with Russian keyboard. PR: 18651 Submitted by: "Mike E. Matsnev" --- sys/dev/kbd/atkbd.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'sys/dev/kbd') diff --git a/sys/dev/kbd/atkbd.c b/sys/dev/kbd/atkbd.c index 186e8944a313..497d267bc272 100644 --- a/sys/dev/kbd/atkbd.c +++ b/sys/dev/kbd/atkbd.c @@ -860,7 +860,8 @@ atkbd_ioctl(keyboard_t *kbd, u_long cmd, caddr_t arg) } i = *(int *)arg; /* replace CAPS LED with ALTGR LED for ALTGR keyboards */ - if (kbd->kb_keymap->n_keys > ALTGR_OFFSET) { + if (state->ks_mode == K_XLATE && + kbd->kb_keymap->n_keys > ALTGR_OFFSET) { if (i & ALKED) i |= CLKED; else -- cgit v1.2.3