Fix caps not working in win32InputMode

Part of #2357
This commit is contained in:
Daniel Imms
2026-01-11 09:00:08 -08:00
parent f4c77d37b4
commit afc6f0b7eb
2 changed files with 3 additions and 2 deletions
+2 -2
View File
@@ -1113,8 +1113,8 @@ export class CoreBrowserTerminal extends CoreTerminal implements ITerminal {
// HACK: Process A-Z in the keypress event to fix an issue with macOS IMEs where lower case
// letters cannot be input while caps lock is on. Skip this hack when using kitty protocol
// as it needs to send proper CSI u sequences for all key events.
if (!this._keyboardService.useKitty && event.key && !event.ctrlKey && !event.altKey && !event.metaKey && event.key.length === 1) {
// or Win32 input mode as they need to send proper sequences for all key events.
if (!this._keyboardService.useKitty && !this._keyboardService.useWin32InputMode && event.key && !event.ctrlKey && !event.altKey && !event.metaKey && event.key.length === 1) {
if (event.key.charCodeAt(0) >= 65 && event.key.charCodeAt(0) <= 90) {
return true;
}
+1
View File
@@ -163,4 +163,5 @@ export interface IKeyboardService {
evaluateKeyDown(event: KeyboardEvent): IKeyboardResult;
evaluateKeyUp(event: KeyboardEvent): IKeyboardResult | undefined;
readonly useKitty: boolean;
readonly useWin32InputMode: boolean;
}