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 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).
|
||||||
|
|
Loading…
Reference in New Issue