diff --git a/Source/Modules/SessionCtl_HandleStates.swift b/Source/Modules/SessionCtl_HandleStates.swift index 409a5c47..0f4c25d4 100644 --- a/Source/Modules/SessionCtl_HandleStates.swift +++ b/Source/Modules/SessionCtl_HandleStates.swift @@ -63,14 +63,16 @@ extension SessionCtl { if previous.hasComposition, ![.ofAbortion, .ofCommitting].contains(newState.type) { commit(text: previous.displayedText) } - showTooltip(newState.tooltip, duration: 1) // 會在工具提示為空的時候自動消除顯示。 + // 會在工具提示為空的時候自動消除顯示。 + showTooltip(newState.tooltip, duration: newState.tooltipDuration) clearInlineDisplay() inputHandler?.clear() case .ofInputting: candidateUI?.visible = false commit(text: newState.textToCommit) setInlineDisplayWithCursor() - showTooltip(newState.tooltip, duration: 1) // 會在工具提示為空的時候自動消除顯示。 + // 會在工具提示為空的時候自動消除顯示。 + showTooltip(newState.tooltip, duration: newState.tooltipDuration) case .ofMarking: candidateUI?.visible = false setInlineDisplayWithCursor()