Revert "Add support for modifiers for PageUp / PageDown keys."

This reverts commit 83921c0b26.

Fixes #1245
This commit is contained in:
Daniel Imms
2018-01-25 09:20:19 -08:00
parent 8f1a629b48
commit 4c6f18c36f
-4
View File
@@ -1600,8 +1600,6 @@ export class Terminal extends EventEmitter implements ITerminal, IInputHandlingT
// page up
if (ev.shiftKey) {
result.scrollLines = -(this.rows - 1);
} else if (modifiers) {
result.key = C0.ESC + '[5;' + (modifiers + 1) + '~';
} else {
result.key = C0.ESC + '[5~';
}
@@ -1610,8 +1608,6 @@ export class Terminal extends EventEmitter implements ITerminal, IInputHandlingT
// page down
if (ev.shiftKey) {
result.scrollLines = this.rows - 1;
} else if (modifiers) {
result.key = C0.ESC + '[6;' + (modifiers + 1) + '~';
} else {
result.key = C0.ESC + '[6~';
}