diff options
author | RĂ©mi Verschelde <rverschelde@gmail.com> | 2018-02-14 16:12:38 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-02-14 16:12:38 +0100 |
commit | d71d78b7e7ae0a62097689d73275bbc7fe842af1 (patch) | |
tree | 485ccb913aeb2a26bbc97b96115a5d56e94a5374 /editor/editor_node.cpp | |
parent | 7d7f8d9e5439ee95f431503906d1545e28ae9d19 (diff) | |
parent | 2ae2735a7a2631ef1a2c901a81135b1a1f3f954f (diff) |
Merge pull request #15862 from poke1024/esc-close-dock
Make KEY_ESCAPE close all output/debugger docks on bottom
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 bec6d581f8..29912feb1f 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); + } + } } } |