Pārlūkot izejas kodu

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.
Rémi Verschelde 7 gadi atpakaļ
vecāks
revīzija
32ee3bf092
1 mainītis faili ar 0 papildinājumiem un 6 dzēšanām
  1. 0 6
      editor/editor_node.cpp

+ 0 - 6
editor/editor_node.cpp

@@ -227,12 +227,6 @@ void EditorNode::_unhandled_input(const Ref<InputEvent> &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();
 		}