chore(web): applies PR suggestion (manually)

This commit is contained in:
Joshua A. Horton 2022-07-14 08:42:04 +07:00
parent ebc8fcf40f
commit 9b2bcf1ea0

View file

@ -185,12 +185,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.