SessionCtl // Don't commit() if .ofInputting() has nothing to commit.
This commit is contained in:
parent
9256866f2c
commit
dc75148c8c
|
@ -73,7 +73,7 @@ public extension SessionCtl {
|
||||||
inputHandler?.clear()
|
inputHandler?.clear()
|
||||||
case .ofInputting:
|
case .ofInputting:
|
||||||
candidateUI?.visible = false
|
candidateUI?.visible = false
|
||||||
commit(text: newState.textToCommit)
|
if !newState.textToCommit.isEmpty { commit(text: newState.textToCommit) }
|
||||||
setInlineDisplayWithCursor()
|
setInlineDisplayWithCursor()
|
||||||
// 會在工具提示為空的時候自動消除顯示。
|
// 會在工具提示為空的時候自動消除顯示。
|
||||||
showTooltip(newState.tooltip, duration: newState.tooltipDuration)
|
showTooltip(newState.tooltip, duration: newState.tooltipDuration)
|
||||||
|
|
Loading…
Reference in New Issue