InputHandler // Allow jumping from candidate state to marking state.

This commit is contained in:
ShikiSuen 2022-12-19 13:36:09 +08:00
parent 07a365412f
commit a61d95339b
1 changed files with 3 additions and 0 deletions

View File

@ -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))