Merge pull request #1215 from markus-oberhumer/ctrl-pageup-pagedown
Add support for modifiers for PageUp / PageDown keys.
This commit is contained in:
@@ -1573,6 +1573,8 @@ 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~';
|
||||||
}
|
}
|
||||||
@@ -1581,6 +1583,8 @@ 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~';
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user