svn commit: r343159 - stable/12/sys/dev/evdev
Vladimir Kondratyev
wulf at FreeBSD.org
Fri Jan 18 21:25:11 UTC 2019
Author: wulf
Date: Fri Jan 18 21:25:10 2019
New Revision: 343159
URL: https://svnweb.freebsd.org/changeset/base/343159
Log:
MFC r340926:
evdev: Fix pause key release event in AT keyboard set 1 to evdev xlat-or.
Modified:
stable/12/sys/dev/evdev/evdev_utils.c
Directory Properties:
stable/12/ (props changed)
Modified: stable/12/sys/dev/evdev/evdev_utils.c
==============================================================================
--- stable/12/sys/dev/evdev/evdev_utils.c Fri Jan 18 21:12:00 2019 (r343158)
+++ stable/12/sys/dev/evdev/evdev_utils.c Fri Jan 18 21:25:10 2019 (r343159)
@@ -250,12 +250,15 @@ evdev_scancode2key(int *state, int scancode)
*/
*state = 0;
if ((scancode & 0x7f) == 0x1D)
- *state = 0x1D;
+ *state = scancode;
return (NONE);
/* NOT REACHED */
case 0x1D: /* pause / break */
+ case 0x9D:
+ if ((*state ^ scancode) & 0x80)
+ return (NONE);
*state = 0;
- if (scancode != 0x45)
+ if ((scancode & 0x7f) != 0x45)
return (NONE);
keycode = KEY_PAUSE;
break;
More information about the svn-src-all
mailing list