From 5476c7b1c321c62e02bbef736e7295db2ea7d595 Mon Sep 17 00:00:00 2001 From: "Joshua A. Horton" Date: Thu, 14 Jul 2022 08:42:04 +0700 Subject: [PATCH] chore(web): applies PR suggestion (manually) --- web/source/kmwbase.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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.