Merge pull request #362 from druzus/master

2016-02-23 23:18 UTC+0100 Przemyslaw Czerpak (druzus/at/poczta.onet.pl)

Edit and function keys pressed with CTRL, ALT or SHIFT modifiers generated wrong key sequences.
This commit is contained in:
Luka Krajger 2016-02-24 07:04:21 -05:00
commit f17bc266f8

View file

@ -2841,7 +2841,7 @@ VT100.prototype.handleKey = function(event) {
ch = part1 + ch = part1 +
((event.shiftKey ? 1 : 0) + ((event.shiftKey ? 1 : 0) +
(event.altKey|event.metaKey ? 2 : 0) + (event.altKey|event.metaKey ? 2 : 0) +
(event.ctrlKey ? 4 : 0)) + (event.ctrlKey ? 4 : 0) + 1) +
part2; part2;
} else if (ch.length == 1 && (event.altKey || event.metaKey) } else if (ch.length == 1 && (event.altKey || event.metaKey)
&& !this.disableAlt) { && !this.disableAlt) {