Issues #51, #202 ... : Keycodes fixes for FireFox

Added keycodes for handling <, >, + and * on Firefox 15+.
This commit is contained in:
KLuka 2015-03-08 14:50:25 +01:00
parent cc3f2fe917
commit 699132d536

View file

@ -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;