InputHandler // Bind acceptLeadingIntonations().

This commit is contained in:
ShikiSuen 2023-05-05 13:48:15 +08:00
parent 7fb48357c4
commit de56d83484
1 changed files with 2 additions and 1 deletions

View File

@ -94,7 +94,8 @@ extension InputHandler {
return handleEnter(input: input, readingOnly: true)
}
//
guard let readingKey = composer.phonabetKeyForQuery(pronouncable: true) else { break ifComposeReading }
let maybeKey = composer.phonabetKeyForQuery(pronouncable: prefs.acceptLeadingIntonations)
guard let readingKey = maybeKey else { break ifComposeReading }
//
if !currentLM.hasUnigramsFor(keyArray: [readingKey]) {
delegate.callError("B49C0979語彙庫內無「\(readingKey)」的匹配記錄。")