Merge pull request #116992 from Giganzo/focus-close-find-replace-bar

Fix Script Editor loses focus on esc in Find/Replace bar
This commit is contained in:
Thaddeus Crews 2026-03-04 11:20:45 -06:00
commit b8fc607ef4
No known key found for this signature in database
GPG key ID: 8C6E5FEB5FC03CCC

View file

@ -574,10 +574,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;