Every time I press F5 to play a scene and I close it, the focus is not automatically returned to the editor.
So I have to manually click on the editor.
I'd like to get the cursor in the exact position it was in the editor before pressing F5.
How to do that?
I did a workaround creating an Autohotkey script (for Windows):
This is what I've found. If you switch to 2D or 3D view and then back to script view it should be focus exactly where you where, so:
F5: to play
F8: to stop
F2 and then F3: to continue editing where you where
This works on macOS tto, where the relevant bindings are:
⌘B to play
⌘Tab ⌘. to switch back to the window and stop the game
Opt+1 Opt+3 to restore focus to the editor pane