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:
commit
b8fc607ef4
1 changed files with 1 additions and 4 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue