]> xenbits.xensource.com Git - pvdrivers/win/xenvkbd.git/commitdiff
Fix HID code for KEY_ENTER
authorPaul Durrant <paul.durrant@citrix.com>
Wed, 31 Jan 2018 17:06:11 +0000 (17:06 +0000)
committerPaul Durrant <paul.durrant@citrix.com>
Wed, 31 Jan 2018 17:07:57 +0000 (17:07 +0000)
The VkbdKeyCodeToUsage array has the value for KEY_ESCAPE (0x29)
incorrectly placed in this entry. This patch replaces that with 0x28, which
is the correct code for the ENTER key.

Signed-off-by: Paul Durrant <paul.durrant@citrix.com>
src/xenvkbd/vkbd.h

index eacc39b488b6a2ae1dcd450f5d9ab1b2fa4a340c..e455078574a57466558f769dd8737835c5a396c5 100644 (file)
@@ -154,7 +154,7 @@ static const USHORT VkbdKeyCodeToUsage[] = {
     0x13, // KEY_P
     0x2F, // KEY_LEFTBRACE
     0x30, // KEY_RIGHTBRACE
-    0x29, // KEY_ENTER
+    0x28, // KEY_ENTER
     0xE0, // KEY_LEFTCTRL
     0x04, // KEY_A
     0x16, // KEY_S