From cd2baf2c4f9a3ab85da7aafb0a98852ac991c186 Mon Sep 17 00:00:00 2001 From: ShikiSuen Date: Fri, 22 Jul 2022 12:50:56 +0800 Subject: [PATCH] KeyHandler // Fix a condition for handling AbsorbedArrowKey. --- Source/Modules/ControllerModules/KeyHandler_HandleInput.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Source/Modules/ControllerModules/KeyHandler_HandleInput.swift b/Source/Modules/ControllerModules/KeyHandler_HandleInput.swift index db5a6e62..f7c0cd59 100644 --- a/Source/Modules/ControllerModules/KeyHandler_HandleInput.swift +++ b/Source/Modules/ControllerModules/KeyHandler_HandleInput.swift @@ -354,7 +354,7 @@ extension KeyHandler { // MARK: AbsorbedArrowKey if input.isAbsorbedArrowKey || input.isExtraChooseCandidateKey || input.isExtraChooseCandidateKeyReverse { - if input.isOptionHold, state.type == .ofInputting { + if input.isOptionHold, state is InputState.Inputting { if input.isExtraChooseCandidateKey { return handleInlineCandidateRotation( state: state, reverseModifier: false, stateCallback: stateCallback, errorCallback: errorCallback