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

MFC after:	2 weeks
This commit is contained in:
wulf 2018-11-25 19:37:00 +00:00
parent 14940cb9ff
commit 7415e89fb5

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;