From 699132d536f1c529abc9ce31c455f60106ad7be8 Mon Sep 17 00:00:00 2001 From: KLuka Date: Sun, 8 Mar 2015 14:50:25 +0100 Subject: [PATCH] Issues #51, #202 ... : Keycodes fixes for FireFox Added keycodes for handling <, >, + and * on Firefox 15+. --- shellinabox/vt100.jspp | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/shellinabox/vt100.jspp b/shellinabox/vt100.jspp index e514692..cd6a90c 100755 --- a/shellinabox/vt100.jspp +++ b/shellinabox/vt100.jspp @@ -2703,6 +2703,7 @@ VT100.prototype.handleKey = function(event) { '\u001BOB' : '\u001B[B'; break; case 45: /* Insert */ ch = '\u001B[2~'; break; case 46: /* Delete */ ch = '\u001B[3~'; break; + case 60: /* > for FF15 */ ch = this.applyModifiers(60, event); break; case 91: /* Left Window */ return; case 92: /* Right Window */ return; case 93: /* Select */ return; @@ -2736,6 +2737,7 @@ VT100.prototype.handleKey = function(event) { case 144: /* Num Lock */ return; case 145: /* Scroll Lock */ return; case 163: /* # for FF15 */ ch = this.applyModifiers(35, event); break; + case 171: /* + for FF15 */ ch = this.applyModifiers(43, event); break; case 173: /* - for FF15 */ ch = this.applyModifiers(45, event); break; case 186: /* ; */ ch = this.applyModifiers(59, event); break; case 187: /* = */ ch = this.applyModifiers(61, event); break; @@ -2872,6 +2874,9 @@ VT100.prototype.fixEvent = function(event) { case 57: /* 9 -> ( */ u = 57; s = 40; break; case 59: /* ; -> : */ u = 59; s = 58; break; + + case 60: /* < -> > FF15 */ u = 60; s = 62; break; + case 61: /* = -> + */ u = 61; s = 43; break; case 91: /* [ -> { */ u = 91; s = 123; break; case 92: /* \ -> | */ u = 92; s = 124; break; @@ -2882,7 +2887,8 @@ VT100.prototype.fixEvent = function(event) { case 111: /* / -> ? */ u = 47; s = 63; break; case 163: /* # -> ~ FF15 */ u = 96; s = 126; break; - case 173: /* - -> _ FF15 */ u = 45; s = 95; break; + case 171: /* + -> * FF15 */ u = 43; s = 42; break; + case 173: /* - -> _ FF15 */ u = 45; s = 95; break; case 186: /* ; -> : */ u = 59; s = 58; break; case 187: /* = -> + */ u = 61; s = 43; break;