SessionCtl // Force updateVerticalTypingStatus() when needed.

This commit is contained in:
ShikiSuen 2022-12-23 12:40:49 +08:00
parent b439b2ce93
commit 5b117a4c3d
2 changed files with 2 additions and 0 deletions

View File

@ -46,6 +46,7 @@ extension SessionCtl {
tooltipInstance.hide() tooltipInstance.hide()
return return
} }
updateVerticalTypingStatus()
let lineHeightRect = lineHeightRect() let lineHeightRect = lineHeightRect()
var finalOrigin: NSPoint = lineHeightRect.origin var finalOrigin: NSPoint = lineHeightRect.origin
let delta: Double = lineHeightRect.size.height + 4.0 // bottomOutOfScreenAdjustmentHeight let delta: Double = lineHeightRect.size.height + 4.0 // bottomOutOfScreenAdjustmentHeight

View File

@ -84,6 +84,7 @@ extension SessionCtl {
} }
// //
if newState.hasComposition, PrefMgr.shared.clientsIMKTextInputIncapable.contains(clientBundleIdentifier) { if newState.hasComposition, PrefMgr.shared.clientsIMKTextInputIncapable.contains(clientBundleIdentifier) {
updateVerticalTypingStatus()
popupCompositionBuffer.isTypingDirectionVertical = isVerticalTyping popupCompositionBuffer.isTypingDirectionVertical = isVerticalTyping
popupCompositionBuffer.show( popupCompositionBuffer.show(
state: newState, at: lineHeightRect(zeroCursor: true).origin state: newState, at: lineHeightRect(zeroCursor: true).origin