Update to FreeBSD stable/12 2019-01-21

Git mirror commit 3a48f3689d65c5304cf706bbf2c5576daeb60a96.

Update #3472.
This commit is contained in:
Sebastian Huber
2019-01-21 10:13:58 +01:00
parent aec8db05b2
commit 1354d9bf97
17 changed files with 227 additions and 45 deletions

View File

@@ -252,12 +252,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;