fix(cli): add SS3 Shift+Tab support for Windows terminals (#18187)

This commit is contained in:
Thanh Nguyen
2026-02-07 10:38:59 -05:00
committed by GitHub
parent a37844e5a1
commit af606aed9b
2 changed files with 2 additions and 0 deletions

View File

@@ -668,6 +668,7 @@ describe('KeypressContext', () => {
// Reverse tabs
{ sequence: `\x1b[Z`, expected: { name: 'tab', shift: true } },
{ sequence: `\x1b[1;2Z`, expected: { name: 'tab', shift: true } },
{ sequence: `\x1bOZ`, expected: { name: 'tab', shift: true } },
// Legacy Arrows
{
sequence: `\x1b[A`,

View File

@@ -80,6 +80,7 @@ const KEY_INFO_MAP: Record<
OQ: { name: 'f2' },
OR: { name: 'f3' },
OS: { name: 'f4' },
OZ: { name: 'tab', shift: true }, // SS3 Shift+Tab variant for Windows terminals
'[[5~': { name: 'pageup' },
'[[6~': { name: 'pagedown' },
'[9u': { name: 'tab' },