Add Embed Game Window shortcut hotkeys support for suspend/pause
and next frame
buttons
#103841
+52
−0
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Fixes godotengine/godot-proposals#11948
This add shortcuts for the
suspend/pause
andnext frame
buttons inside the embed window.I've set the following default hotkeys
They are the same hotkeys as
Breakpoint
andStep into
hotkeys. But they don't conflict with each other due to different context focus.The F9 hotkey is using the same convention as the breakpoint hotkey uses for macos.
So the hotkey is:
KeyModifierMask::META | KeyModifierMask::SHIFT | Key::B
I've intentionally let the next frame button work with is_echo() so you can hold the button to skip several frames.
This adds a very systematic way to add new shortcuts for the embed window buttons if any more buttons would like to have hotkeys. More info on the steps are inside the issue.
embed.hotkeys.mp4