1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-24 15:26:15 +00:00

Merge pull request #15862 from poke1024/esc-close-dock

Make KEY_ESCAPE close all output/debugger docks on bottom
This commit is contained in:
Rémi Verschelde
2018-02-14 16:12:38 +01:00
committed by GitHub

View File

@@ -217,6 +217,12 @@ void EditorNode::_unhandled_input(const Ref<InputEvent> &p_event) {
} else if (ED_IS_SHORTCUT("editor/editor_prev", p_event)) {
_editor_select_prev();
}
if (k->get_scancode() == KEY_ESCAPE) {
for (int i = 0; i < bottom_panel_items.size(); i++) {
_bottom_panel_switch(false, i);
}
}
}
}