Send ctrl modifier in page up/down sequence

Part of microsoft/vscode#148685
This commit is contained in:
Daniel Imms
2022-05-06 07:36:22 -07:00
parent 218745ab85
commit 873e3745ec
+4
View File
@@ -230,6 +230,8 @@ export function evaluateKeyboardEvent(
// page up
if (ev.shiftKey) {
result.type = KeyboardResultType.PAGE_UP;
} else if (ev.ctrlKey) {
result.key = C0.ESC + '[5;' + (modifiers + 1) + '~';
} else {
result.key = C0.ESC + '[5~';
}
@@ -238,6 +240,8 @@ export function evaluateKeyboardEvent(
// page down
if (ev.shiftKey) {
result.type = KeyboardResultType.PAGE_DOWN;
} else if (ev.ctrlKey) {
result.key = C0.ESC + '[6;' + (modifiers + 1) + '~';
} else {
result.key = C0.ESC + '[6~';
}