summaryrefslogtreecommitdiffstats
path: root/editor/code_editor.cpp
diff options
context:
space:
mode:
authorYuri Sizov <yuris@humnom.net>2023-07-12 15:09:46 +0200
committerYuri Sizov <yuris@humnom.net>2023-07-12 15:09:46 +0200
commitecc9134086727da59707fee8e1649370a68db2bb (patch)
treed3b490e34df7de8b64de9c12f43b3c0b14baab54 /editor/code_editor.cpp
parent5167bed9f0f34f4fd28f3787e7ba07cc0400318c (diff)
parent7eb517c27f154566d9b4e45c2102577c6029d066 (diff)
downloadredot-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.cpp2
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();
}