Fix Script Editor loses focus on esc in Find/Replace bar

This commit is contained in:
Giganzo 2026-03-03 00:43:23 +01:00
parent 1aaea38e7f
commit 195e3e8574

View file

@ -573,10 +573,7 @@ bool FindReplaceBar::search_next() {
}
void FindReplaceBar::_hide_bar() {
if (replace_text->has_focus() || search_text->has_focus()) {
text_editor->grab_focus();
}
text_editor->grab_focus();
text_editor->set_search_text("");
result_line = -1;
result_col = -1;