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
This commit is contained in:
Asad Saeed 2016-09-06 14:42:13 -04:00 committed by Samuel Mannehed
parent ac33960368
commit 7c1b2bac90
1 changed files with 4 additions and 2 deletions

View File

@ -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,