1
0
mirror of https://github.com/godotengine/godot.git synced 2025-12-07 17:36:07 +00:00

Added accept_event() calls for SceneTreeDock and BaseButton

This commit is contained in:
Eric M
2020-09-16 10:44:38 +10:00
parent 18023cc3ed
commit 9d7d20a978
2 changed files with 6 additions and 0 deletions

View File

@@ -114,7 +114,12 @@ void SceneTreeDock::_unhandled_key_input(Ref<InputEvent> 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) {