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 committed Sep 6, 2016
1 parent 7a16304 commit 5fd57e8
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions include/xtscancodes.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 5fd57e8

Please sign in to comment.