From 7c1b2bac907676d155709cb86511137fa718d38f 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 --- core/input/xtscancodes.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/core/input/xtscancodes.js b/core/input/xtscancodes.js index 89d824cc..542bcf73 100644 --- a/core/input/xtscancodes.js +++ b/core/input/xtscancodes.js @@ -110,8 +110,10 @@ var XtScancode = { "PageDown": 0xE051, "Insert": 0xE052, "Delete": 0xE053, - "OSLeft": 0xE05B, - "OSRight": 0xE05C, + "MetaLeft": 0xE05B, + "MetaRight": 0xE05C, + "OSLeft": 0xE05B, // OSLeft and OSRight are kept for compatability since + "OSRight": 0xE05C, // Firefox haven't updated to MetaLeft and MetaRight yet "ContextMenu": 0xE05D, "BrowserSearch": 0xE065, "BrowserFavorites": 0xE066,