Convert key code 219 to XK_bracketleft for passthrough of ctrl-[

Added a single conversion from key code 219 to XK_bracketleft so that ctrl-[
passes through noVNC into the server session.  This is useful for editing with
vi/vim as ctrl-[ acts as the ESC key but allows one to leave their fingers on
the home row.
This commit is contained in:
mmead 2017-01-24 17:45:34 -05:00
parent 394ad22be9
commit 72a5eec1cf
1 changed files with 1 additions and 0 deletions

View File

@ -229,6 +229,7 @@ var KeyboardUtil = {};
case 0xbc: return KeyTable.XK_comma;
case 0xbd: return KeyTable.XK_minus;
case 0xbe: return KeyTable.XK_period;
case 0xdb: return KeyTable.XK_bracketleft;
}
return nonCharacterKey({keyCode: keycode});