mirror of
https://github.com/godotengine/godot.git
synced 2025-10-20 00:13:30 +00:00
Improve the debugger shortcut UX
- Display the shortcut in the button tooltips by defining the shortcut on the buttons as well. - Swap "Step Over" and "Step Into" in the Debug menu to match the button order in the Debugger bottom panel.
This commit is contained in:
parent
2e065d8ad0
commit
471a3ceb77
2 changed files with 5 additions and 1 deletions
|
@ -3308,8 +3308,8 @@ ScriptEditor::ScriptEditor(EditorNode *p_editor) {
|
|||
debug_menu->set_text(TTR("Debug"));
|
||||
debug_menu->set_switch_on_hover(true);
|
||||
debug_menu->get_popup()->set_hide_on_window_lose_focus(true);
|
||||
debug_menu->get_popup()->add_shortcut(ED_SHORTCUT("debugger/step_over", TTR("Step Over"), KEY_F10), DEBUG_NEXT);
|
||||
debug_menu->get_popup()->add_shortcut(ED_SHORTCUT("debugger/step_into", TTR("Step Into"), KEY_F11), DEBUG_STEP);
|
||||
debug_menu->get_popup()->add_shortcut(ED_SHORTCUT("debugger/step_over", TTR("Step Over"), KEY_F10), DEBUG_NEXT);
|
||||
debug_menu->get_popup()->add_separator();
|
||||
debug_menu->get_popup()->add_shortcut(ED_SHORTCUT("debugger/break", TTR("Break")), DEBUG_BREAK);
|
||||
debug_menu->get_popup()->add_shortcut(ED_SHORTCUT("debugger/continue", TTR("Continue"), KEY_F12), DEBUG_CONTINUE);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue