From f0014c3a7ab7df7394db97ec00093ccbe5d92c7a Mon Sep 17 00:00:00 2001 From: KLuka Date: Wed, 22 Apr 2015 21:42:01 +0200 Subject: [PATCH] Firefox keyboard fix (German layout) Some keycodes were moved from "normalKey" flag under "alphNumKey" flag. --- shellinabox/vt100.jspp | 12 +++--------- 1 file changed, 3 insertions(+), 9 deletions(-) diff --git a/shellinabox/vt100.jspp b/shellinabox/vt100.jspp index bca7946..2786424 100755 --- a/shellinabox/vt100.jspp +++ b/shellinabox/vt100.jspp @@ -2956,22 +2956,16 @@ VT100.prototype.keyDown = function(event) { event.keyCode >= 65 && event.keyCode <= 90; var alphNumKey = asciiKey || - event.keyCode == 59 || + event.keyCode >= 58 && event.keyCode <= 64 || event.keyCode >= 96 && event.keyCode <= 105 || event.keyCode == 107 || - event.keyCode == 192 || - event.keyCode >= 219 && event.keyCode <= 221 || - event.keyCode == 223 || + event.keyCode >= 160 && event.keyCode <= 192 || + event.keyCode >= 219 && event.keyCode <= 223 || event.keyCode == 226; var normalKey = alphNumKey || - event.keyCode == 58 || /* FF15 patch */ - event.keyCode >= 60 && event.keyCode <= 64 || /* FF15 patch */ event.keyCode == 106 || event.keyCode >= 109 && event.keyCode <= 111 || - event.keyCode >= 160 && event.keyCode <= 185 || /* FF15 patch */ - event.keyCode >= 186 && event.keyCode <= 191 || - event.keyCode == 222 || event.keyCode == 229 || event.keyCode == 252; try {