SessionCtl // Extract resetCandidateWindowOrigin().
This commit is contained in:
parent
adc4d918c6
commit
20368fcd91
|
@ -14,6 +14,7 @@ public protocol CtlCandidateDelegate {
|
|||
func candidatePairHighlightChanged(at index: Int)
|
||||
func candidatePairRightClicked(at index: Int, action: CandidateContextMenuAction)
|
||||
func candidates(_ sender: Any!) -> [Any]!
|
||||
func resetCandidateWindowOrigin()
|
||||
@discardableResult func reverseLookup(for value: String) -> [String]
|
||||
var selectionKeys: String { get }
|
||||
var isVerticalTyping: Bool { get }
|
||||
|
|
|
@ -144,6 +144,10 @@ public extension SessionCtl {
|
|||
candidateUI?.delegate = self // 會自動觸發田所選字窗的資料重載。
|
||||
candidateUI?.visible = true
|
||||
|
||||
resetCandidateWindowOrigin()
|
||||
}
|
||||
|
||||
func resetCandidateWindowOrigin() {
|
||||
if isVerticalTyping {
|
||||
candidateUI?.set(
|
||||
windowTopLeftPoint: NSPoint(
|
||||
|
|
Loading…
Reference in New Issue