From 5b117a4c3d3f604e88ed5a51a31dfa5e0121fa2f Mon Sep 17 00:00:00 2001 From: ShikiSuen Date: Fri, 23 Dec 2022 12:40:49 +0800 Subject: [PATCH] SessionCtl // Force updateVerticalTypingStatus() when needed. --- Source/Modules/SessionCtl_HandleDisplay.swift | 1 + Source/Modules/SessionCtl_HandleStates.swift | 1 + 2 files changed, 2 insertions(+) diff --git a/Source/Modules/SessionCtl_HandleDisplay.swift b/Source/Modules/SessionCtl_HandleDisplay.swift index 75ff6852..295c1912 100644 --- a/Source/Modules/SessionCtl_HandleDisplay.swift +++ b/Source/Modules/SessionCtl_HandleDisplay.swift @@ -46,6 +46,7 @@ extension SessionCtl { tooltipInstance.hide() return } + updateVerticalTypingStatus() let lineHeightRect = lineHeightRect() var finalOrigin: NSPoint = lineHeightRect.origin let delta: Double = lineHeightRect.size.height + 4.0 // bottomOutOfScreenAdjustmentHeight diff --git a/Source/Modules/SessionCtl_HandleStates.swift b/Source/Modules/SessionCtl_HandleStates.swift index 723a5a5a..a889eb90 100644 --- a/Source/Modules/SessionCtl_HandleStates.swift +++ b/Source/Modules/SessionCtl_HandleStates.swift @@ -84,6 +84,7 @@ extension SessionCtl { } // 浮動組字窗的顯示判定 if newState.hasComposition, PrefMgr.shared.clientsIMKTextInputIncapable.contains(clientBundleIdentifier) { + updateVerticalTypingStatus() popupCompositionBuffer.isTypingDirectionVertical = isVerticalTyping popupCompositionBuffer.show( state: newState, at: lineHeightRect(zeroCursor: true).origin