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
This commit is contained in:
parent
821ee789c4
commit
8e68059b50
1 changed files with 5 additions and 0 deletions
|
@ -2729,6 +2729,8 @@ VT100.prototype.handleKey = function(event) {
|
||||||
case 123: /* F12 */ ch = '\u001B[24~'; break;
|
case 123: /* F12 */ ch = '\u001B[24~'; break;
|
||||||
case 144: /* Num Lock */ return;
|
case 144: /* Num Lock */ return;
|
||||||
case 145: /* Scroll 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 186: /* ; */ ch = this.applyModifiers(59, event); break;
|
||||||
case 187: /* = */ ch = this.applyModifiers(61, event); break;
|
case 187: /* = */ ch = this.applyModifiers(61, event); break;
|
||||||
case 188: /* , */ ch = this.applyModifiers(44, 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 109: /* - -> _ */ u = 45; s = 95; break;
|
||||||
case 111: /* / -> ? */ u = 47; s = 63; 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 186: /* ; -> : */ u = 59; s = 58; break;
|
||||||
case 187: /* = -> + */ u = 61; s = 43; break;
|
case 187: /* = -> + */ u = 61; s = 43; break;
|
||||||
case 188: /* , -> < */ u = 44; s = 60; break;
|
case 188: /* , -> < */ u = 44; s = 60; break;
|
||||||
|
|
Loading…
Reference in a new issue