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
This commit is contained in:
Marc Durdin 2022-07-07 13:09:00 +10:00 committed by Joshua A. Horton
parent 6b5ef29fcc
commit 9ffca15f64

View file

@ -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');