KeyHandler // Send necessary Tone One to composer when isSpace.

This commit is contained in:
ShikiSuen 2022-05-18 21:58:52 +08:00
parent 03e3a39489
commit 52c2617e87
1 changed files with 3 additions and 0 deletions

View File

@ -166,6 +166,9 @@ extension KeyHandler {
// However, Swift does not support "|=".
composeReading = composeReading || (!_composer.isEmpty && (input.isSpace || input.isEnter))
if composeReading {
if input.isSpace && !_composer.hasToneMarker() {
_composer.receiveKey(fromString: " ") //
}
let reading = _composer.getComposition()
// See whether we have a unigram for this...