mirror of
https://github.com/godotengine/godot.git
synced 2025-10-25 10:44:26 +00:00
Merge pull request #20609 from YeldhamDev/menu_hover_explicit
Make opening menus with the same parent on mouse focus explicit
This commit is contained in:
commit
bf59b73250
10 changed files with 43 additions and 10 deletions
|
|
@ -3491,6 +3491,7 @@ VisualScriptEditor::VisualScriptEditor() {
|
|||
|
||||
edit_menu = memnew(MenuButton);
|
||||
edit_menu->set_text(TTR("Edit"));
|
||||
edit_menu->set_switch_on_hover(true);
|
||||
edit_menu->get_popup()->add_shortcut(ED_GET_SHORTCUT("visual_script_editor/delete_selected"), EDIT_DELETE_NODES);
|
||||
edit_menu->get_popup()->add_shortcut(ED_GET_SHORTCUT("visual_script_editor/toggle_breakpoint"), EDIT_TOGGLE_BREAKPOINT);
|
||||
edit_menu->get_popup()->add_shortcut(ED_GET_SHORTCUT("visual_script_editor/find_node_type"), EDIT_FIND_NODE_TYPE);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue