From 4cc1d828153e7b85d5fa5596f8897c36690b7b7b Mon Sep 17 00:00:00 2001 From: ShikiSuen Date: Wed, 17 Aug 2022 16:38:51 +0800 Subject: [PATCH] IMKCandidates // Make the candidate selection keys work. --- .../UIModules/CandidateUI/ctlCandidateIMK.swift | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/Source/Modules/UIModules/CandidateUI/ctlCandidateIMK.swift b/Source/Modules/UIModules/CandidateUI/ctlCandidateIMK.swift index a867229b..3f7f96d1 100644 --- a/Source/Modules/UIModules/CandidateUI/ctlCandidateIMK.swift +++ b/Source/Modules/UIModules/CandidateUI/ctlCandidateIMK.swift @@ -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,