mirror of
https://github.com/keymanapp/keyman.git
synced 2026-09-19 14:17:40 +00:00
fix(web): crash on focus before init
Fixes the following crash noted when testing on keymanweb.com, focusing
during the load process on a slow network.
```
helpers.ts:111 Uncaught TypeError: Cannot read properties of null (reading 'vkbd')
at g.pageFocusHandler (keymanweb.ts:125:44)
at sentryWrapped (helpers.ts:87:17)
```
This commit is contained in:
parent
f28b38a1e8
commit
e3537e7bb7
1 changed files with 1 additions and 1 deletions
|
|
@ -122,7 +122,7 @@ if(!window['keyman']['initialized']) {
|
|||
**/
|
||||
function resetVKShift() {
|
||||
let keyman = com.keyman.singleton;
|
||||
if(!keyman.uiManager.isActivating && keyman.osk.vkbd) {
|
||||
if(!keyman.uiManager.isActivating && keyman.osk?.vkbd) {
|
||||
keyman.core.keyboardProcessor._UpdateVKShift(null); //this should be enabled !!!!! TODO
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue