KeyHandler // Comment updates.

This commit is contained in:
ShikiSuen 2022-06-21 00:37:57 +08:00
parent 7754a29925
commit 3da4395e12
1 changed files with 7 additions and 7 deletions

View File

@ -175,26 +175,26 @@ extension KeyHandler {
// 使 OVMandarin調 // 使 OVMandarin調
composer.receiveKey(fromString: " ") composer.receiveKey(fromString: " ")
} }
let reading = composer.getComposition() // let reading = composer.getComposition() //
// //
// //
if !ifLangModelHasUnigrams(forKey: reading) { if !ifLangModelHasUnigrams(forKey: reading) {
IME.prtDebugIntel("B49C0979語彙庫內無「\(reading)」的匹配記錄。") IME.prtDebugIntel("B49C0979語彙庫內無「\(reading)」的匹配記錄。")
errorCallback() errorCallback()
composer.clear() composer.clear()
// //
stateCallback((compositorLength == 0) ? InputState.EmptyIgnoringPreviousState() : buildInputtingState) stateCallback((compositorLength == 0) ? InputState.EmptyIgnoringPreviousState() : buildInputtingState)
return true // IMK return true // IMK
} }
// //
insertToCompositorAtCursor(reading: reading) insertToCompositorAtCursor(reading: reading)
// //
let textToCommit = popOverflowComposingTextAndWalk let textToCommit = popOverflowComposingTextAndWalk
// //
dealWithOverrideModelSuggestions() dealWithOverrideModelSuggestions()
// //