From 4676c995ce480fd26a434b7aa7c8ccedb060250e Mon Sep 17 00:00:00 2001 From: ShikiSuen Date: Sat, 8 Oct 2022 18:57:57 +0800 Subject: [PATCH] Repo // Fix selection key errors of vertical IMKCandidates. --- Source/Modules/KeyHandler_Core.swift | 1 + Source/Modules/KeyHandler_HandleCandidate.swift | 6 ++++-- Source/Modules/SessionCtl_Delegates.swift | 4 +++- 3 files changed, 8 insertions(+), 3 deletions(-) diff --git a/Source/Modules/KeyHandler_Core.swift b/Source/Modules/KeyHandler_Core.swift index e5a5ab68..4b8673ff 100644 --- a/Source/Modules/KeyHandler_Core.swift +++ b/Source/Modules/KeyHandler_Core.swift @@ -19,6 +19,7 @@ import Tekkon /// KeyHandler 委任協定 public protocol KeyHandlerDelegate { + var selectionKeys: String { get } var clientBundleIdentifier: String { get } func candidateController() -> CtlCandidateProtocol func candidateSelectionCalledByKeyHandler(at index: Int) diff --git a/Source/Modules/KeyHandler_HandleCandidate.swift b/Source/Modules/KeyHandler_HandleCandidate.swift index 766d3179..43c77903 100644 --- a/Source/Modules/KeyHandler_HandleCandidate.swift +++ b/Source/Modules/KeyHandler_HandleCandidate.swift @@ -232,8 +232,10 @@ extension KeyHandler { let match: String = (state.type == .ofAssociates) ? input.inputTextIgnoringModifiers ?? "" : input.text - for j in 0..