svn commit: r343160 - stable/11/sys/dev/evdev

Vladimir Kondratyev wulf at FreeBSD.org
Fri Jan 18 21:25:47 UTC 2019


Author: wulf
Date: Fri Jan 18 21:25:46 2019
New Revision: 343160
URL: https://svnweb.freebsd.org/changeset/base/343160

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

Modified:
  stable/11/sys/dev/evdev/evdev_utils.c
Directory Properties:
  stable/11/   (props changed)

Modified: stable/11/sys/dev/evdev/evdev_utils.c
==============================================================================
--- stable/11/sys/dev/evdev/evdev_utils.c	Fri Jan 18 21:25:10 2019	(r343159)
+++ stable/11/sys/dev/evdev/evdev_utils.c	Fri Jan 18 21:25:46 2019	(r343160)
@@ -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;


More information about the svn-src-all mailing list