diff --git a/web/source/kmwbase.ts b/web/source/kmwbase.ts index e89c2e44f6..d1ccd15c6a 100644 --- a/web/source/kmwbase.ts +++ b/web/source/kmwbase.ts @@ -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.