Closed gsteinLTU closed 6 months ago
Hmm... This needs further exploration as we have the same logic (line 155 of gui-ext.js)
It looks like it's not the world canvas that needs focus, it's the morphic_keyboard. On Snap, document.activeElement is set to it on load, while NetsBlox does have the canvas focused.
Related to #1511
Key shortcuts currently do not work until the user has clicked on the canvas. I think it makes sense for a user to immediately want to press ctrl/command+O to open a project. Snap! seems to focus itself automatically (I think it's https://github.com/jmoenig/Snap/blob/5937085ed8c0837f82d7372d1eb938ae7fc07362/src/gui.js#L434 , but we have similar ), we should do the same (when not running in an iframe?).