From 5fd57e8a6a5c80eafdf3aecc560b9207261b9cca Mon Sep 17 00:00:00 2001 From: Asad Saeed Date: Tue, 6 Sep 2016 14:42:13 -0400 Subject: [PATCH] Add Meta Key mapping to xtscancodes.js OSLeft/OSRight have been renamed to MetaLeft/MetaRight respectively. This change will allow the Super/Windows key to be used under the qemu rfb extension under Chrome and updated browsers. https://github.com/w3c/uievents-code/issues/7 https://developer.mozilla.org/en-US/docs/Web/API/KeyboardEvent/code --- include/xtscancodes.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/include/xtscancodes.js b/include/xtscancodes.js index d19a0174..489d17a1 100644 --- a/include/xtscancodes.js +++ b/include/xtscancodes.js @@ -110,6 +110,8 @@ XtScancode["ArrowDown"] = 0xE050; XtScancode["PageDown"] = 0xE051; XtScancode["Insert"] = 0xE052; XtScancode["Delete"] = 0xE053; +XtScancode["MetaLeft"] = 0xE05B; +XtScancode["MetaRight"] = 0xE05C; XtScancode["OSLeft"] = 0xE05B; XtScancode["OSRight"] = 0xE05C; XtScancode["ContextMenu"] = 0xE05D;