mirror of
https://github.com/keymanapp/keyman.git
synced 2026-10-16 19:07:33 +00:00
fix(web): fix failed user test scenario - overwriting suggestion-applied whitespace
This commit is contained in:
parent
6c847422df
commit
c26c9c5b82
1 changed files with 2 additions and 1 deletions
|
|
@ -216,6 +216,7 @@ export default class PredictionContext extends EventEmitter<PredictionContextEve
|
|||
if(!this.swallowPrediction || source == 'context') {
|
||||
this._recentAcceptCause = null;
|
||||
this.recentRevert = false;
|
||||
this._immediateReversion = null;
|
||||
|
||||
if(source == 'context') {
|
||||
this.swallowPrediction = false;
|
||||
|
|
@ -258,7 +259,6 @@ export default class PredictionContext extends EventEmitter<PredictionContextEve
|
|||
// and prevent it from being hidden after reversion operations.
|
||||
this._keepSuggestion = null;
|
||||
this._revertSuggestion = null;
|
||||
this._immediateReversion = null;
|
||||
for (const s of suggestions) {
|
||||
if(s.tag == 'keep') {
|
||||
this._keepSuggestion = s as Keep;
|
||||
|
|
@ -282,6 +282,7 @@ export default class PredictionContext extends EventEmitter<PredictionContextEve
|
|||
if(!this.swallowPrediction) {
|
||||
this._recentAcceptCause = null;
|
||||
this.recentRevert = false;
|
||||
this._immediateReversion = null;
|
||||
} else { // This prediction was triggered by a recent 'accept.' Now that it's fulfilled, we clear the flag.
|
||||
this.swallowPrediction = false;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue