From 32ee3bf092724885d052ec897f0a7ced40c3ef0f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=A9mi=20Verschelde?= Date: Sun, 7 Oct 2018 11:10:13 +0200 Subject: Revert "Make KEY_ESCAPE close all output/debugger docks on bottom" This reverts commit 2ae2735a7a2631ef1a2c901a81135b1a1f3f954f. It also closes panels like the shader text editor when trying to discard code completion tooltips. It could be readded with extra care that modals like tooltips will take precedence and mark the event as handled. Fixes #17159, fixes #20738, closes #22727. --- editor/editor_node.cpp | 6 ------ 1 file changed, 6 deletions(-) (limited to 'editor') diff --git a/editor/editor_node.cpp b/editor/editor_node.cpp index fda6457e26..18dd85617b 100644 --- a/editor/editor_node.cpp +++ b/editor/editor_node.cpp @@ -227,12 +227,6 @@ void EditorNode::_unhandled_input(const Ref &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); - } - } - if (old_editor != editor_plugin_screen) { get_tree()->set_input_as_handled(); } -- cgit v1.2.3