InputHandler // Use updatePopupDisplayWithCursor() if needed.
This commit is contained in:
parent
e4be1ecd3d
commit
c5b3083b48
|
@ -69,6 +69,7 @@ public protocol InputHandlerDelegate {
|
|||
func candidateController() -> CtlCandidateProtocol?
|
||||
func candidateSelectionConfirmedByInputHandler(at index: Int)
|
||||
func setInlineDisplayWithCursor()
|
||||
func updatePopupDisplayWithCursor()
|
||||
func performUserPhraseOperation(addToFilter: Bool)
|
||||
-> Bool
|
||||
}
|
||||
|
@ -430,6 +431,9 @@ public class InputHandler: InputHandlerProtocol {
|
|||
theState.data.cursor = inputting.cursor
|
||||
delegate.state = theState // 直接就地取代,不經過 switchState 處理,免得選字窗被重新載入。
|
||||
delegate.setInlineDisplayWithCursor()
|
||||
if delegate.clientMitigationLevel >= 2, theState.hasComposition {
|
||||
delegate.updatePopupDisplayWithCursor()
|
||||
}
|
||||
}
|
||||
|
||||
// MARK: - Extracted methods and functions (Tekkon).
|
||||
|
|
Loading…
Reference in New Issue