InputHandler // Expose generateStateOfCandidates().
This commit is contained in:
parent
eb7076e318
commit
d870d5ad2a
|
@ -28,6 +28,7 @@ public protocol InputHandlerProtocol {
|
|||
func clearComposerAndCalligrapher()
|
||||
func ensureKeyboardParser()
|
||||
func handleEvent(_ event: NSEvent) -> Bool
|
||||
func generateStateOfCandidates() -> IMEStateProtocol
|
||||
func generateStateOfInputting(sansReading: Bool) -> IMEStateProtocol
|
||||
func generateStateOfAssociates(withPair pair: Megrez.Compositor.KeyValuePaired) -> IMEStateProtocol
|
||||
func consolidateNode(candidate: (String, String), respectCursorPushing: Bool, preConsolidate: Bool)
|
||||
|
|
|
@ -90,7 +90,7 @@ extension InputHandler {
|
|||
|
||||
/// 拿著給定的候選字詞陣列資料內容,切換至選字狀態。
|
||||
/// - Returns: 回呼一個新的選詞狀態,來就給定的候選字詞陣列資料內容顯示選字窗。
|
||||
func generateStateOfCandidates() -> IMEStateProtocol {
|
||||
public func generateStateOfCandidates() -> IMEStateProtocol {
|
||||
IMEState.ofCandidates(
|
||||
candidates: generateArrayOfCandidates(fixOrder: prefs.useFixecCandidateOrderOnSelection),
|
||||
displayTextSegments: compositor.walkedNodes.values,
|
||||
|
|
Loading…
Reference in New Issue