InputHandler // Use updatePopupDisplayWithCursor() if needed.

This commit is contained in:
ShikiSuen 2023-03-11 17:01:03 +08:00
parent e4be1ecd3d
commit c5b3083b48
1 changed files with 4 additions and 0 deletions

View File

@ -69,6 +69,7 @@ public protocol InputHandlerDelegate {
func candidateController() -> CtlCandidateProtocol? func candidateController() -> CtlCandidateProtocol?
func candidateSelectionConfirmedByInputHandler(at index: Int) func candidateSelectionConfirmedByInputHandler(at index: Int)
func setInlineDisplayWithCursor() func setInlineDisplayWithCursor()
func updatePopupDisplayWithCursor()
func performUserPhraseOperation(addToFilter: Bool) func performUserPhraseOperation(addToFilter: Bool)
-> Bool -> Bool
} }
@ -430,6 +431,9 @@ public class InputHandler: InputHandlerProtocol {
theState.data.cursor = inputting.cursor theState.data.cursor = inputting.cursor
delegate.state = theState // switchState delegate.state = theState // switchState
delegate.setInlineDisplayWithCursor() delegate.setInlineDisplayWithCursor()
if delegate.clientMitigationLevel >= 2, theState.hasComposition {
delegate.updatePopupDisplayWithCursor()
}
} }
// MARK: - Extracted methods and functions (Tekkon). // MARK: - Extracted methods and functions (Tekkon).