Skip to content

Commit

Permalink
change(web): eliminates early redundant context reset
Browse files Browse the repository at this point in the history
This one occurred during Promise fulfillment synchronously but outside OSK batching mode... with another call later _within_ OSK batching mode.
  • Loading branch information
jahorton committed Apr 4, 2024
1 parent 8756a79 commit da7ea66
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions web/src/engine/main/src/contextManagerBase.ts
Original file line number Diff line number Diff line change
Expand Up @@ -274,8 +274,6 @@ export abstract class ContextManagerBase<MainConfig extends EngineConfiguration>
// (!wasNull || !!keyboard) - blocks events for `null` -> `null` transitions.
// (keyman/keymanweb.com#96)
if(this.currentKeyboardSrcTarget() == originalKeyboardTarget && (!wasNull || !!keyboard)) {
// Perform standard context-reset ops, including the processing of new-context events.
this.resetContext();
// Will trigger KeymanEngine handler that passes keyboard to the OSK, displays it.
this.emit('keyboardchange', this.activeKeyboard);
}
Expand Down

0 comments on commit da7ea66

Please sign in to comment.