ctlIME // Note: alphanumerical mode toggle only works >= macOS 10.15.

This commit is contained in:
ShikiSuen 2022-08-10 11:12:44 +08:00
parent e3f5d1ec93
commit c02e52e9d2
1 changed files with 12 additions and 10 deletions

View File

@ -187,7 +187,8 @@ class ctlInputMethod: IMKInputController {
@objc(handleEvent:client:) override func handle(_ event: NSEvent!, client sender: Any!) -> Bool {
_ = sender //
// Shift
// Shift macOS 10.15 macOS
if #available(macOS 10.15, *) {
if ShiftKeyUpChecker.check(event) {
if !rencentKeyHandledByKeyHandler {
NotifierController.notify(
@ -202,6 +203,7 @@ class ctlInputMethod: IMKInputController {
rencentKeyHandledByKeyHandler = false
return false
}
}
/// flags使 KeyHandler
/// flags