Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 25 Nov 2018 19:37:00 +0000 (UTC)
From:      Vladimir Kondratyev <wulf@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r340926 - head/sys/dev/evdev
Message-ID:  <201811251937.wAPJb0Mc035543@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: wulf
Date: Sun Nov 25 19:37:00 2018
New Revision: 340926
URL: https://svnweb.freebsd.org/changeset/base/340926

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

Modified:
  head/sys/dev/evdev/evdev_utils.c

Modified: head/sys/dev/evdev/evdev_utils.c
==============================================================================
--- head/sys/dev/evdev/evdev_utils.c	Sun Nov 25 18:09:39 2018	(r340925)
+++ head/sys/dev/evdev/evdev_utils.c	Sun Nov 25 19:37:00 2018	(r340926)
@@ -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;



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201811251937.wAPJb0Mc035543>