From a61d95339bc4e3e8c3100342959b2e46b2d7bd32 Mon Sep 17 00:00:00 2001 From: ShikiSuen Date: Mon, 19 Dec 2022 13:36:09 +0800 Subject: [PATCH] InputHandler // Allow jumping from candidate state to marking state. --- Source/Modules/InputHandler_HandleCandidate.swift | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Source/Modules/InputHandler_HandleCandidate.swift b/Source/Modules/InputHandler_HandleCandidate.swift index bbcce410..65417fe3 100644 --- a/Source/Modules/InputHandler_HandleCandidate.swift +++ b/Source/Modules/InputHandler_HandleCandidate.swift @@ -43,6 +43,9 @@ extension InputHandler { delegate.switchState(IMEState.ofAbortion()) } else { delegate.switchState(generateStateOfInputting()) + if input.isCursorBackward || input.isCursorForward, input.isShiftHold { + return handleInput(event: input) + } } if state.type == .ofSymbolTable, let nodePrevious = state.node.previous, !nodePrevious.members.isEmpty { delegate.switchState(IMEState.ofSymbolTable(node: nodePrevious))