mirror of
https://git.FreeBSD.org/src.git
synced 2025-01-28 16:43:09 +00:00
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>
This commit is contained in:
parent
84c27d0735
commit
2073104f87
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=61004
@ -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
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user