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:
commit
f17bc266f8
1 changed files with 1 additions and 1 deletions
|
@ -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) {
|
||||||
|
|
Loading…
Reference in a new issue