KeyHandler // Tweak handleInlineCandidateRotation().

- Let it retrieve candidate array directly from a special variable.
This commit is contained in:
ShikiSuen 2022-06-22 17:35:37 +08:00
parent 40c3b3042c
commit 98dd14ad02
1 changed files with 2 additions and 2 deletions

View File

@ -755,7 +755,7 @@ extension KeyHandler {
stateCallback: @escaping (InputState) -> Void,
errorCallback: @escaping () -> Void
) -> Bool {
guard let state = state as? InputState.Inputting else {
guard state is InputState.Inputting else {
guard state is InputState.Empty else {
IME.prtDebugIntel("6044F081")
errorCallback()
@ -772,7 +772,7 @@ extension KeyHandler {
}
//
let candidates = buildCandidate(state: state).candidates
let candidates = candidatesArray
guard !candidates.isEmpty else {
IME.prtDebugIntel("3378A6DF")
errorCallback()