SessionCtl // Implement updatePopupDisplayWithCursor().
This commit is contained in:
parent
5a03fcc510
commit
0423ce727c
|
@ -87,11 +87,16 @@ public extension SessionCtl {
|
||||||
showCandidates()
|
showCandidates()
|
||||||
}
|
}
|
||||||
// 浮動組字窗的顯示判定
|
// 浮動組字窗的顯示判定
|
||||||
if newState.hasComposition, clientMitigationLevel >= 2 {
|
updatePopupDisplayWithCursor()
|
||||||
|
}
|
||||||
|
|
||||||
|
/// 浮動組字窗的顯示判定
|
||||||
|
func updatePopupDisplayWithCursor() {
|
||||||
|
if state.hasComposition, clientMitigationLevel >= 2 {
|
||||||
updateVerticalTypingStatus()
|
updateVerticalTypingStatus()
|
||||||
popupCompositionBuffer.isTypingDirectionVertical = isVerticalTyping
|
popupCompositionBuffer.isTypingDirectionVertical = isVerticalTyping
|
||||||
popupCompositionBuffer.show(
|
popupCompositionBuffer.show(
|
||||||
state: newState, at: lineHeightRect(zeroCursor: true).origin
|
state: state, at: lineHeightRect(zeroCursor: true).origin
|
||||||
)
|
)
|
||||||
} else {
|
} else {
|
||||||
popupCompositionBuffer.hide()
|
popupCompositionBuffer.hide()
|
||||||
|
|
Loading…
Reference in New Issue