evdev: Fix pause key release event in AT keyboard set 1 to evdev xlat-or.
MFC after: 2 weeks
This commit is contained in:
parent
038c170fc2
commit
a0e9218c01
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=340926
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user