diff options
| author | Bernhard Liebl | 2018-01-19 09:04:55 +0100 |
|---|---|---|
| committer | Bernhard Liebl | 2018-01-19 09:04:55 +0100 |
| commit | 2ae2735a7a2631ef1a2c901a81135b1a1f3f954f (patch) | |
| tree | 0530c3cf6bd4ba9a59c8fbf401c16b6dcc1c1a5f /editor/editor_node.cpp | |
| parent | 9f479f096cb50fa8d1215e68c262f110116114ef (diff) | |
| download | godot-2ae2735a7a2631ef1a2c901a81135b1a1f3f954f.tar.gz godot-2ae2735a7a2631ef1a2c901a81135b1a1f3f954f.tar.zst godot-2ae2735a7a2631ef1a2c901a81135b1a1f3f954f.zip | |
Diffstat (limited to 'editor/editor_node.cpp')
| -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 2f0c41c6e..80e47f5c6 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); + } + } } } |
