From 1adc9ea58f72024875b8a297a52e54e6619e8999 Mon Sep 17 00:00:00 2001 From: "Joshua A. Horton" Date: Wed, 18 Oct 2023 09:54:28 +0700 Subject: [PATCH] fix(web): fixes touch form-factor default kbd on cookieless keymanweb.com load --- web/src/app/browser/src/keymanEngine.ts | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/web/src/app/browser/src/keymanEngine.ts b/web/src/app/browser/src/keymanEngine.ts index a49d9cb8f49..45f031d0215 100644 --- a/web/src/app/browser/src/keymanEngine.ts +++ b/web/src/app/browser/src/keymanEngine.ts @@ -175,6 +175,19 @@ export default class KeymanEngine extends KeymanEngineBase { + if(!this.contextManager.activeKeyboard?.keyboard) { + // Autoselects this.keyboardRequisitioner.cache.defaultStub, which will be + // set to an actual keyboard on mobile devices. + this.setActiveKeyboard('', ''); + } + }); + this.contextManager.initialize(); // will seek to attach to the page, which requires document.body // Capture the saved-keyboard string now, before we load any keyboards/stubs @@ -213,6 +226,8 @@ export default class KeymanEngine extends KeymanEngineBase void {