mirror of
https://github.com/keymanapp/keyman.git
synced 2026-08-10 02:45:32 +00:00
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:
parent
6b5ef29fcc
commit
9ffca15f64
1 changed files with 3 additions and 0 deletions
|
|
@ -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');
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue