From 873e3745ec043cea97f219d00980477435785983 Mon Sep 17 00:00:00 2001 From: Daniel Imms <2193314+Tyriar@users.noreply.github.com> Date: Fri, 6 May 2022 07:36:22 -0700 Subject: [PATCH] Send ctrl modifier in page up/down sequence Part of microsoft/vscode#148685 --- src/common/input/Keyboard.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/common/input/Keyboard.ts b/src/common/input/Keyboard.ts index b4b3dce4..6d916a38 100644 --- a/src/common/input/Keyboard.ts +++ b/src/common/input/Keyboard.ts @@ -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~'; }