Pause Running Project
shortcut hotkey should work when the playing game is focused
#11875
Labels
Pause Running Project
shortcut hotkey should work when the playing game is focused
#11875
Describe the project you are working on
Random prototypes and tutorials.
Describe the problem or limitation you are having in your project
Even though Godot has a hotkey for pausing the running game, it doesn't work unless the editor itself is focused. Which is almost pointless.
The hotkey should be able to function even if the game is focused. Like the F8 hotkey to close the game does.
This was briefly pointed out in one of the bullet points from #3105
Not sure if this should be a bug or a feature request.
Right now, the hotkey only works when the editor is focused:
(I'm clicking on the editor and only then pressing the hotkey for it to work here)
now_bad.mp4
Describe the feature / enhancement and how it helps to overcome the problem or limitation
Make the Stop Running Project hotkey work while the game is focused and running.
When pause is pressed now, the hotkey works but the game minimizes. But can enable always on top to prevent this behavior:
working.mp4
Describe how your proposal will work, with code, pseudo-code, mock-ups, and/or diagrams
To be able to accept the hotkey event, the
script_editor_debugger
needs to register the hotkey to thescene_debugger.cpp
so it may get the hotkey event and signal back to thescript_editor_debugger
, who in turn presses the button.The messaging between them is handled by __put_msg() from script_editor_debugger and the EngineDebugger::send_message to send the message back.
Notes:
This is only for the normal game window.
The embed window pause button is handled very differently from the main window and does not share the same pause behavior or hotkey.
I'll take a look at that one later(if no one else does it), but I think its important that the normal window works first.
If this enhancement will not be used often, can it be worked around with a few lines of script?
No, the engine needs to handle this.
Is there a reason why this should be core and not an add-on in the asset library?
This is a basic feature of the engine.
The text was updated successfully, but these errors were encountered: