Fix AltGr, we should not only skip RAlt key release if enable_altgr is set, but

also process RAlt key press same way.

Sponsored by:	The FreeBSD Foundation
This commit is contained in:
Aleksandr Rybalko 2013-12-26 14:25:37 +00:00
parent 7c31e86bcb
commit 19e314e7c3

View File

@ -417,6 +417,8 @@ vt_processkey(keyboard_t *kbd, struct vt_device *vd, int c)
} else {
switch (c & ~RELKEY) {
case (SPCLKEY | RALT):
if (vt_enable_altgr != 0)
break;
case (SPCLKEY | LALT):
vd->vd_kbstate |= ALKED;
}