From 0f448614404e1bbd6369655295b0e3d3cbd3ab32 Mon Sep 17 00:00:00 2001 From: ShikiSuen Date: Mon, 20 Mar 2023 14:38:42 +0800 Subject: [PATCH] SessionCtl // Implement hidePalletes(). --- Source/Modules/SessionCtl_Core.swift | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/Source/Modules/SessionCtl_Core.swift b/Source/Modules/SessionCtl_Core.swift index 57928d40..6c036158 100644 --- a/Source/Modules/SessionCtl_Core.swift +++ b/Source/Modules/SessionCtl_Core.swift @@ -375,4 +375,11 @@ public extension SessionCtl { resetInputHandler() super.inputControllerWillClose() } + + /// 該函式僅用來取消任何輸入法浮動視窗的顯示。 + override func hidePalettes() { + candidateUI?.visible = false + popupCompositionBuffer.hide() + tooltipInstance.hide() + } }