I have my console and browser tab separated. When I have browser focus and alt-tab to my console, I’m getting in ffox:
Uncaught TypeError: t.isDeviceAvailable is not a function
_checkNonCharacterKeys http://preview.babylonjs.com/babylon.js:16
_createKeyboardEvent http://preview.babylonjs.com/babylon.js:16
CreateDeviceEvent http://preview.babylonjs.com/babylon.js:16
_keyboardBlurEvent http://preview.babylonjs.com/babylon.js:16
_handleKeyActions http://preview.babylonjs.com/babylon.js:16
e http://preview.babylonjs.com/babylon.js:16
Create http://preview.babylonjs.com/babylon.js:16
attachControl http://preview.babylonjs.com/babylon.js:16
attachControl http://preview.babylonjs.com/babylon.js:16
t http://preview.babylonjs.com/babylon.js:16
etc…
and in chrome:
babylon.js:16 Uncaught TypeError: t.isDeviceAvailable is not a function
at Function.e._checkNonCharacterKeys (babylon.js:16)
at Function.e._createKeyboardEvent (babylon.js:16)
at Function.e.CreateDeviceEvent (babylon.js:16)
at HTMLCanvasElement._keyboardBlurEvent (babylon.js:16)
No errors when alt-tabbing from console to browser. Interestingly, I can’t repro in PG.
edit: I managed to repro in PG. Open an PG (https://playground.babylonjs.com/), click your mouse in the right side where the scene is, alt-tab to console, the same error should appear. Hope it helps.