From ebd673fdb2c36c3d90ea97106005fda15dd408d9 Mon Sep 17 00:00:00 2001 From: jahorton Date: Tue, 21 Sep 2021 12:19:11 +0700 Subject: [PATCH] fix(web): osk dismissal after focus timer --- web/source/osk/oskView.ts | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/web/source/osk/oskView.ts b/web/source/osk/oskView.ts index 03db9a5845..9399ffbe00 100644 --- a/web/source/osk/oskView.ts +++ b/web/source/osk/oskView.ts @@ -836,7 +836,12 @@ namespace com.keyman.osk { }); return promise.then(function() { - if(_this._Visible) { + // Repro for passing this condition: + // 1. Touch an input element of the page + // 2. Within a second (before the focusing timer expires), touch the base page. + // See domEventHandlers.ts, `focusTimer` / `setFocusTimer`. + // 3. After the timer expires, touch the base page again. + if(_this._Visible && _this.activationConditionsMet) { // Leave opacity alone and clear transition if another element activated os.transition=''; return false;