IMKCandidates // Make the candidate selection keys work.

This commit is contained in:
ShikiSuen 2022-08-17 16:38:51 +08:00
parent 5e0f96aaee
commit 4cc1d82815
1 changed files with 10 additions and 0 deletions

View File

@ -299,7 +299,17 @@ public class ctlCandidateIMK: IMKCandidates, ctlCandidateProtocol {
eventArray = Array(eventArray.dropFirst(0))
eventArray.insert(newEvent, at: 0)
}
perform(Selector(("handleKeyboardEvent:")), with: newEvent)
return
}
if mgrPrefs.useSCPCTypingMode {
if !input.isReservedKey {
_ = delegate.sharedEventHandler(event)
return
}
}
if delegate.isAssociatedPhrasesMode,
!input.isPageUp, !input.isPageDown, !input.isCursorForward, !input.isCursorBackward,
!input.isCursorClockLeft, !input.isCursorClockRight, !input.isSpace,