From 72a5eec1cf662e90e0c9d6d3751fdaced8bc6759 Mon Sep 17 00:00:00 2001 From: mmead Date: Tue, 24 Jan 2017 17:45:34 -0500 Subject: [PATCH] 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. --- core/input/util.js | 1 + 1 file changed, 1 insertion(+) diff --git a/core/input/util.js b/core/input/util.js index 52b31283..b7f20684 100644 --- a/core/input/util.js +++ b/core/input/util.js @@ -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});