Added accept_event() calls for SceneTreeDock and BaseButton
This commit is contained in:
parent
18023cc3ed
commit
9d7d20a978
2 changed files with 6 additions and 0 deletions
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue