Skip to content

Commit

Permalink
Add Meta Key mapping to xtscancodes.js
Browse files Browse the repository at this point in the history
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.

w3c/uievents-code#7
https://developer.mozilla.org/en-US/docs/Web/API/KeyboardEvent/code
  • Loading branch information
asadpanda authored and samhed committed Oct 19, 2016
1 parent ac33960 commit 7c1b2ba
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions core/input/xtscancodes.js
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 7c1b2ba

Please sign in to comment.