evdev: Fix pause key release event in AT keyboard set 1 to evdev xlat-or.

MFC after:	2 weeks
This commit is contained in:
Vladimir Kondratyev 2018-11-25 19:37:00 +00:00
parent 038c170fc2
commit a0e9218c01
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=340926

View File

@ -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;