Make KEY_ESCAPE close all output/debugger docks on bottom
(cherry picked from commit 2ae2735a7a
)
This commit is contained in:
parent
50674dbe15
commit
c04d868476
1 changed files with 6 additions and 0 deletions
|
@ -217,6 +217,12 @@ void EditorNode::_unhandled_input(const Ref<InputEvent> &p_event) {
|
||||||
} else if (ED_IS_SHORTCUT("editor/editor_prev", p_event)) {
|
} else if (ED_IS_SHORTCUT("editor/editor_prev", p_event)) {
|
||||||
_editor_select_prev();
|
_editor_select_prev();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (k->get_scancode() == KEY_ESCAPE) {
|
||||||
|
for (int i = 0; i < bottom_panel_items.size(); i++) {
|
||||||
|
_bottom_panel_switch(false, i);
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue