Repo // Simplify conditions for updatePopupDisplayWithCursor().
This commit is contained in:
parent
d271ec1a14
commit
2d3d0d3fc2
|
@ -433,10 +433,8 @@ public class InputHandler: InputHandlerProtocol {
|
||||||
theState.data.marker = inputting.marker
|
theState.data.marker = inputting.marker
|
||||||
delegate.state = theState // 直接就地取代,不經過 switchState 處理,免得選字窗被重新載入。
|
delegate.state = theState // 直接就地取代,不經過 switchState 處理,免得選字窗被重新載入。
|
||||||
delegate.setInlineDisplayWithCursor()
|
delegate.setInlineDisplayWithCursor()
|
||||||
if delegate.clientMitigationLevel >= 2, theState.hasComposition {
|
|
||||||
delegate.updatePopupDisplayWithCursor()
|
delegate.updatePopupDisplayWithCursor()
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
// MARK: - Extracted methods and functions (Tekkon).
|
// MARK: - Extracted methods and functions (Tekkon).
|
||||||
|
|
||||||
|
|
|
@ -140,9 +140,7 @@ extension SessionCtl: CtlCandidateDelegate {
|
||||||
state.data.cursor = 0
|
state.data.cursor = 0
|
||||||
}
|
}
|
||||||
setInlineDisplayWithCursor()
|
setInlineDisplayWithCursor()
|
||||||
if clientMitigationLevel >= 2, state.hasComposition {
|
|
||||||
updatePopupDisplayWithCursor()
|
updatePopupDisplayWithCursor()
|
||||||
}
|
|
||||||
default: break
|
default: break
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue