Merge pull request #1246 from Tyriar/1245_revert_page_change

Revert "Add support for modifiers for PageUp / PageDown keys."
This commit is contained in:
Daniel Imms
2018-02-02 09:51:28 -08:00
committed by GitHub
-4
View File
@@ -1604,8 +1604,6 @@ export class Terminal extends EventEmitter implements ITerminal, IInputHandlingT
// page up // page up
if (ev.shiftKey) { if (ev.shiftKey) {
result.scrollLines = -(this.rows - 1); result.scrollLines = -(this.rows - 1);
} else if (modifiers) {
result.key = C0.ESC + '[5;' + (modifiers + 1) + '~';
} else { } else {
result.key = C0.ESC + '[5~'; result.key = C0.ESC + '[5~';
} }
@@ -1614,8 +1612,6 @@ export class Terminal extends EventEmitter implements ITerminal, IInputHandlingT
// page down // page down
if (ev.shiftKey) { if (ev.shiftKey) {
result.scrollLines = this.rows - 1; result.scrollLines = this.rows - 1;
} else if (modifiers) {
result.key = C0.ESC + '[6;' + (modifiers + 1) + '~';
} else { } else {
result.key = C0.ESC + '[6~'; result.key = C0.ESC + '[6~';
} }