From 8e68059b5097a4bfbbdbb2ef2e49f1668a5bf55f Mon Sep 17 00:00:00 2001 From: KLuka Date: Thu, 5 Mar 2015 17:10:55 +0100 Subject: [PATCH] Issue #202: "-_" keys don't not work in FF > 15 Added new keycodes for Firefox More info: https://code.google.com/p/shellinabox/issues/detail?id=202 Refernece: 49b538590ea57da76a0af895a23c521c9a4538be --- shellinabox/vt100.jspp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/shellinabox/vt100.jspp b/shellinabox/vt100.jspp index e5f31ab..fcfb42e 100755 --- a/shellinabox/vt100.jspp +++ b/shellinabox/vt100.jspp @@ -2729,6 +2729,8 @@ VT100.prototype.handleKey = function(event) { case 123: /* F12 */ ch = '\u001B[24~'; break; case 144: /* Num Lock */ return; case 145: /* Scroll Lock */ return; + case 163: /* # for FF15 */ ch = this.applyModifiers(35, 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; case 188: /* , */ ch = this.applyModifiers(44, event); break; @@ -2873,6 +2875,9 @@ VT100.prototype.fixEvent = function(event) { case 109: /* - -> _ */ u = 45; s = 95; break; case 111: /* / -> ? */ u = 47; s = 63; break; + case 163: /* # -> ~ FF15 */ u = 96; s = 126; break; + case 173: /* - -> _ FF15 */ u = 45; s = 95; break; + case 186: /* ; -> : */ u = 59; s = 58; break; case 187: /* = -> + */ u = 61; s = 43; break; case 188: /* , -> < */ u = 44; s = 60; break;