diff options
| author | Bernhard Liebl | 2018-01-19 09:04:55 +0100 |
|---|---|---|
| committer | Hein-Pieter van Braam | 2018-02-19 21:01:41 +0100 |
| commit | c04d8684765b2adc2fe2af56741ff8a2b8953f75 (patch) | |
| tree | c8ee4789ecf43ec579174ccff278a21ec6a55cfc | |
| parent | 50674dbe154d9284ba11c47013c41c65fb0b4821 (diff) | |
| download | godot-c04d8684765b2adc2fe2af56741ff8a2b8953f75.tar.gz godot-c04d8684765b2adc2fe2af56741ff8a2b8953f75.tar.zst godot-c04d8684765b2adc2fe2af56741ff8a2b8953f75.zip | |
Make KEY_ESCAPE close all output/debugger docks on bottom
(cherry picked from commit 2ae2735a7a2631ef1a2c901a81135b1a1f3f954f)
Diffstat (limited to '')
| -rw-r--r-- | editor/editor_node.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/editor/editor_node.cpp b/editor/editor_node.cpp index 98991cd7c..6032d8620 100644 --- a/editor/editor_node.cpp +++ b/editor/editor_node.cpp @@ -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); + } + } } } |
