SessionCtl // Clear tooltip when necessary.
This commit is contained in:
parent
d1bd34ee43
commit
6060cc4fbf
|
@ -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
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue