ctlIME // Do not handle when client is not IMKTextInput.

This commit is contained in:
ShikiSuen 2022-08-30 13:35:35 +08:00
parent a05a92b9fb
commit 149484f988
1 changed files with 3 additions and 0 deletions

View File

@ -193,6 +193,9 @@ class ctlInputMethod: IMKInputController {
@objc(handleEvent:client:) override func handle(_ event: NSEvent!, client sender: Any!) -> Bool { @objc(handleEvent:client:) override func handle(_ event: NSEvent!, client sender: Any!) -> Bool {
_ = sender // _ = sender //
// client()
if !(sender is IMKTextInput) { return false }
// NSEvent nilApple InputMethodKit // NSEvent nilApple InputMethodKit
guard let event = event else { return false } guard let event = event else { return false }