ctlIME // +shouldAlwaysUseShiftKeyAccommodation.

This commit is contained in:
ShikiSuen 2022-08-14 17:51:25 +08:00
parent 0dc199ce68
commit cfa772bd6e
1 changed files with 3 additions and 1 deletions

View File

@ -202,7 +202,9 @@ class ctlInputMethod: IMKInputController {
_ = sender // _ = sender //
// Shift macOS 10.15 macOS // 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 #available(macOS 10.15, *) {
if ShiftKeyUpChecker.check(event) { if ShiftKeyUpChecker.check(event) {
if !shouldUseHandle || (!rencentKeyHandledByKeyHandler && shouldUseHandle) { if !shouldUseHandle || (!rencentKeyHandledByKeyHandler && shouldUseHandle) {