From c04d8684765b2adc2fe2af56741ff8a2b8953f75 Mon Sep 17 00:00:00 2001 From: Bernhard Liebl Date: Fri, 19 Jan 2018 09:04:55 +0100 Subject: [PATCH] Make KEY_ESCAPE close all output/debugger docks on bottom (cherry picked from commit 2ae2735a7a2631ef1a2c901a81135b1a1f3f954f) --- editor/editor_node.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/editor/editor_node.cpp b/editor/editor_node.cpp index 98991cd7c0e..6032d862012 100644 --- a/editor/editor_node.cpp +++ b/editor/editor_node.cpp @@ -217,6 +217,12 @@ void EditorNode::_unhandled_input(const Ref &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); + } + } } }