mirror of
https://github.com/opnsense/src.git
synced 2026-06-09 00:32:25 -04:00
Fix non-working CAPS LED under X by applying fix from atkbd.c,v 1.27:
: revision 1.27 : date: 2000/05/28 12:43:24; author: ache; state: Exp; lines: +3 -2 : 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" <mike@po.cs.msu.su> MFC after: 3 days
This commit is contained in:
parent
ef65fa0fcc
commit
f280a8fbd3
1 changed files with 2 additions and 1 deletions
|
|
@ -1218,7 +1218,8 @@ ukbd_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
|
||||
|
|
|
|||
Loading…
Reference in a new issue