mirror of https://github.com/godotengine/godot
Allow ui_cancel to unselect all nodes in 2D, matching 3D behavior
This commit is contained in:
parent
fbaab3cf53
commit
06f586e890
|
|
@ -2463,7 +2463,7 @@ bool CanvasItemEditor::_gui_input_select(const Ref<InputEvent> &p_event) {
|
|||
}
|
||||
}
|
||||
|
||||
if (k.is_valid() && k->is_action_pressed(SNAME("ui_cancel"), false, true) && drag_type == DRAG_NONE && tool == TOOL_SELECT) {
|
||||
if (k.is_valid() && k->is_action_pressed(SNAME("ui_cancel"), false, true) && drag_type == DRAG_NONE) {
|
||||
// Unselect everything
|
||||
editor_selection->clear();
|
||||
viewport->queue_redraw();
|
||||
|
|
|
|||
Loading…
Reference in New Issue