fix: keyboard shortcuts on non-Latin keyboard layouts (#718)

This commit is contained in:
Danila Poyarkov 2026-01-14 12:28:58 +03:00 committed by GitHub
parent 7f2d2f106e
commit 15a9670db5
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 228 additions and 25 deletions

View file

@ -108,7 +108,9 @@ export class ProcessTerminal implements Terminal {
// Enable Kitty keyboard protocol (push flags)
// Flag 1 = disambiguate escape codes
// Flag 2 = report event types (press/repeat/release)
process.stdout.write("\x1b[>3u");
// Flag 4 = report alternate keys (shifted key, base layout key)
// Base layout key enables shortcuts to work with non-Latin keyboard layouts
process.stdout.write("\x1b[>7u");
return; // Don't forward protocol response to TUI
}
}