mirror of
https://github.com/godotengine/godot.git
synced 2025-10-21 00:43:46 +00:00
Merge pull request #42109 from EricEzaM/PR/input-and-shortcuts-rework
Shortcuts rework - fixed issues with input propagation and triggering of unwanted shortcuts.
This commit is contained in:
commit
a09846e015
29 changed files with 180 additions and 89 deletions
|
@ -4729,6 +4729,7 @@ VisualScriptEditor::VisualScriptEditor() {
|
|||
saved_position = Vector2(0, 0);
|
||||
|
||||
edit_menu = memnew(MenuButton);
|
||||
edit_menu->set_shortcut_context(this);
|
||||
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);
|
||||
|
@ -4930,7 +4931,6 @@ VisualScriptEditor::VisualScriptEditor() {
|
|||
updating_members = false;
|
||||
|
||||
set_process_input(true);
|
||||
set_process_unhandled_input(true);
|
||||
|
||||
default_value_edit = memnew(CustomPropertyEditor);
|
||||
add_child(default_value_edit);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue