IMKCandidates // Move certain things to init().

This commit is contained in:
ShikiSuen 2022-08-22 09:00:50 +08:00
parent 1e306e9916
commit 002920550f
1 changed files with 2 additions and 2 deletions

View File

@ -91,13 +91,13 @@ public class ctlCandidateIMK: IMKCandidates, ctlCandidateProtocol {
case .vertical:
setPanelType(kIMKSingleColumnScrollingCandidatePanel)
}
// true ctlIME
setAttributes([IMKCandidatesSendServerKeyEventFirst: true])
}
public required init(_ layout: CandidateLayout = .horizontal) {
super.init(server: theServer, panelType: kIMKScrollingGridCandidatePanel)
specifyLayout(layout)
// true ctlIME
setAttributes([IMKCandidatesSendServerKeyEventFirst: true])
visible = false
// guard let currentTISInputSource = currentTISInputSource else { return } //
// setSelectionKeys([18, 19, 20, 21, 23, 22, 26, 28, 25]) //