From 9d7d20a978fccf7b2871dc388f16b87b4b686144 Mon Sep 17 00:00:00 2001 From: Eric M Date: Wed, 16 Sep 2020 10:44:38 +1000 Subject: Added accept_event() calls for SceneTreeDock and BaseButton --- editor/scene_tree_dock.cpp | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'editor') diff --git a/editor/scene_tree_dock.cpp b/editor/scene_tree_dock.cpp index ec225c3c38..83e16a2dd2 100644 --- a/editor/scene_tree_dock.cpp +++ b/editor/scene_tree_dock.cpp @@ -114,7 +114,12 @@ void SceneTreeDock::_unhandled_key_input(Ref p_event) { _tool_selected(TOOL_COPY_NODE_PATH); } else if (ED_IS_SHORTCUT("scene_tree/delete", p_event)) { _tool_selected(TOOL_ERASE); + } else { + return; } + + // Tool selection was successful, accept the event to stop propagation. + accept_event(); } void SceneTreeDock::instance(const String &p_file) { -- cgit v1.2.3