Hi everyone,
Please see here: Babylon.js Playground
Use arrow keys. Camera moves around. Now click button. Key presses have no effect anymore.
Technically, it should be fixable by attaching the event listener to the document; see e.g. here Edit fiddle - JSFiddle - Code Playground
I tried to do that but it seems providing a custom DOM node to Camera.attachControls is deprecated.
From there I lost it. I might have chased it down to engine.getInputElement. But this cannot be changed. There is also a couple of attachControls, attachElement, attachInput functions in various Camera classes but none of them will take an actual DOM node as input parameter.
Best wishes
Joe