From 9ffca15f643ead60efc810d454d2335c343d14ea Mon Sep 17 00:00:00 2001 From: Marc Durdin Date: Thu, 7 Jul 2022 13:09:00 +1000 Subject: [PATCH] fix(developer): set contextDevice in web debugger With the fix in fix/web/context-only-device, we need to ensure that the debugger correctly tells KeymanWeb which device is active. @keymanapp-test-bot skip --- developer/server/src/site/test.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/developer/server/src/site/test.js b/developer/server/src/site/test.js index 6331b9eab4..50ec97f50d 100644 --- a/developer/server/src/site/test.js +++ b/developer/server/src/site/test.js @@ -202,7 +202,10 @@ window.onload = function() { keyman.osk = null; } + // Create a new on screen keyboard view and tell KeymanWeb that + // we are using the targetDevice for context input. newOSK = new com.keyman.osk.InlinedOSKView(targetDevice, keyman.util.device.coreSpec); + keyman.core.contextDevice = targetDevice; if(document.body.offsetWidth < targetDevice.dimensions[0]) { newOSK.setSize('320px', '200px');