diff options
author | Yuri Sizov <yuris@humnom.net> | 2023-07-12 15:09:46 +0200 |
---|---|---|
committer | Yuri Sizov <yuris@humnom.net> | 2023-07-12 15:09:46 +0200 |
commit | ecc9134086727da59707fee8e1649370a68db2bb (patch) | |
tree | d3b490e34df7de8b64de9c12f43b3c0b14baab54 /editor/code_editor.cpp | |
parent | 5167bed9f0f34f4fd28f3787e7ba07cc0400318c (diff) | |
parent | 7eb517c27f154566d9b4e45c2102577c6029d066 (diff) | |
download | redot-engine-ecc9134086727da59707fee8e1649370a68db2bb.tar.gz |
Merge pull request #79079 from stmSi/ESC-key-not-closing-FindReplaceBar
Fix ESC (ui_cancel) not closing FindReplaceBar
Diffstat (limited to 'editor/code_editor.cpp')
-rw-r--r-- | editor/code_editor.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/editor/code_editor.cpp b/editor/code_editor.cpp index 70fd738019..c1a4b052c1 100644 --- a/editor/code_editor.cpp +++ b/editor/code_editor.cpp @@ -126,7 +126,7 @@ void FindReplaceBar::unhandled_input(const Ref<InputEvent> &p_event) { if (k.is_valid() && k->is_action_pressed(SNAME("ui_cancel"), false, true)) { Control *focus_owner = get_viewport()->gui_get_focus_owner(); - if (text_editor->has_focus() || (focus_owner && vbc_lineedit->is_ancestor_of(focus_owner))) { + if (text_editor->has_focus() || (focus_owner && is_ancestor_of(focus_owner))) { _hide_bar(); accept_event(); } |