chore(web): applies PR suggestion (manually)

This commit is contained in:
Joshua A. Horton 2022-07-14 08:42:04 +07:00
parent 53578a114f
commit 5476c7b1c3

View file

@ -180,12 +180,12 @@ namespace com.keyman {
* Reset context when entering or exiting the active element.
* Will also trigger OSK shift state / layer reset.
**/
pageFocusHandler: () => boolean = function(this: KeymanBase) {
pageFocusHandler = () => {
if(!this.uiManager.isActivating && this.osk?.vkbd) {
this.core.resetContext(null);
}
return false;
}.bind(this);
}
/**
* Triggers a KeymanWeb engine shutdown to facilitate a full system reset.