From cfa772bd6e992236cf43ddd37e605e396d6df0bf Mon Sep 17 00:00:00 2001 From: ShikiSuen Date: Sun, 14 Aug 2022 17:51:25 +0800 Subject: [PATCH] ctlIME // +shouldAlwaysUseShiftKeyAccommodation. --- Source/Modules/ControllerModules/ctlInputMethod_Core.swift | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Source/Modules/ControllerModules/ctlInputMethod_Core.swift b/Source/Modules/ControllerModules/ctlInputMethod_Core.swift index c0d9497e..e47a9da9 100644 --- a/Source/Modules/ControllerModules/ctlInputMethod_Core.swift +++ b/Source/Modules/ControllerModules/ctlInputMethod_Core.swift @@ -202,7 +202,9 @@ class ctlInputMethod: IMKInputController { _ = sender // 防止格式整理工具毀掉與此對應的參數。 // 用 Shift 開關半形英數模式,僅對 macOS 10.15 及之後的 macOS 有效。 - let shouldUseHandle = IME.arrClientShiftHandlingExceptionList.contains(clientBundleIdentifier) + let shouldUseHandle = + IME.arrClientShiftHandlingExceptionList.contains(clientBundleIdentifier) + || mgrPrefs.shouldAlwaysUseShiftKeyAccommodation if #available(macOS 10.15, *) { if ShiftKeyUpChecker.check(event) { if !shouldUseHandle || (!rencentKeyHandledByKeyHandler && shouldUseHandle) {