fix(common/models): fixes post-wordbreak suggestions

This commit is contained in:
jahorton 2020-12-04 13:39:04 +07:00
parent 340220642c
commit 07daee7b16
2 changed files with 2 additions and 0 deletions

View file

@ -150,6 +150,7 @@ class ModelCompositor {
if(this.isEmpty(inputTransform) || this.isWhitespace(inputTransform)) {
newEmptyToken = true;
prefixTransform = inputTransform;
context = postContext; // Ensure the whitespace token is preapplied!
}
}

View file

@ -690,6 +690,7 @@ namespace com.keyman.osk {
// Do we have a keep suggestion? If so, remove it from the list so that we can control its display position
// and prevent it from being hidden after reversion operations.
this.keepSuggestion = null;
for(let s of suggestions) {
if(s.tag == 'keep') {
this.keepSuggestion = s as Keep;