InputHandler // Straightly triage the event if IMKCandidates is OFF.

This commit is contained in:
ShikiSuen 2023-06-22 00:21:17 +08:00
parent 59383f0e20
commit 4af9794653
1 changed files with 1 additions and 0 deletions

View File

@ -27,6 +27,7 @@ extension InputHandler {
/// - Parameter event: IMK /// - Parameter event: IMK
/// - Returns: `true` IMK`false` /// - Returns: `true` IMK`false`
private func imkCandidatesEventPreHandler(event eventToDeal: NSEvent) -> Bool? { private func imkCandidatesEventPreHandler(event eventToDeal: NSEvent) -> Bool? {
guard prefs.useIMKCandidateWindow else { return nil }
guard let delegate = delegate, delegate.state.isCandidateContainer else { return nil } guard let delegate = delegate, delegate.state.isCandidateContainer else { return nil }
// IMK IMK // IMK IMK