Date: Fri, 18 Jan 2019 21:25:46 +0000 (UTC) From: Vladimir Kondratyev <wulf@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-11@freebsd.org Subject: svn commit: r343160 - stable/11/sys/dev/evdev Message-ID: <201901182125.x0ILPkgx035652@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
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;
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201901182125.x0ILPkgx035652>