From 1cc558d5bd8c0e7e23356cca16cf576106a3da1c Mon Sep 17 00:00:00 2001 From: LEO Yoon-Tsaw Date: Sun, 2 Jun 2024 13:26:09 -0400 Subject: [PATCH] [Fix] Alt+key as shortcut may not work properly --- sources/SquirrelInputController.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sources/SquirrelInputController.swift b/sources/SquirrelInputController.swift index 05d2c63e4..6d5928bf8 100644 --- a/sources/SquirrelInputController.swift +++ b/sources/SquirrelInputController.swift @@ -97,7 +97,7 @@ final class SquirrelInputController: IMKInputController { let keyCode = event.keyCode var keyChars = event.charactersIgnoringModifiers - if let code = keyChars?.first, !code.isLetter { + if let code = keyChars?.first, !code.isASCII { keyChars = event.characters } // print("[DEBUG] KEYDOWN client: \(sender ?? "nil"), modifiers: \(modifiers), keyCode: \(keyCode), keyChars: [\(keyChars ?? "empty")]")