diff --git a/Source/Modules/SessionCtl_HandleEvent.swift b/Source/Modules/SessionCtl_HandleEvent.swift index f1304f5c..379151a9 100644 --- a/Source/Modules/SessionCtl_HandleEvent.swift +++ b/Source/Modules/SessionCtl_HandleEvent.swift @@ -134,6 +134,12 @@ extension SessionCtl { /// 直接交給 commonEventHandler 來處理。 let result = inputHandler.handleEvent(eventToDeal) if shouldUseShiftToggleHandle { rencentKeyHandledByInputHandlerEtc = result } + if !result { + // 除非是 .ofMarking 狀態,否則讓某些不用去抓的按鍵起到「取消工具提示」的作用。 + if [.ofEmpty].contains(state.type) { + tooltipInstance.hide() + } + } return result } }