mirror of
https://github.com/godotengine/godot.git
synced 2025-12-08 06:09:55 +00:00
Hide Control focus when given via mouse input
This commit is contained in:
parent
2753d333f6
commit
aeb3a45c97
53 changed files with 229 additions and 105 deletions
|
|
@ -599,10 +599,10 @@ void FindReplaceBar::_show_search(bool p_with_replace, bool p_show_only) {
|
|||
|
||||
if (focus_replace) {
|
||||
search_text->deselect();
|
||||
callable_mp((Control *)replace_text, &Control::grab_focus).call_deferred();
|
||||
callable_mp((Control *)replace_text, &Control::grab_focus).call_deferred(false);
|
||||
} else {
|
||||
replace_text->deselect();
|
||||
callable_mp((Control *)search_text, &Control::grab_focus).call_deferred();
|
||||
callable_mp((Control *)search_text, &Control::grab_focus).call_deferred(false);
|
||||
}
|
||||
|
||||
if (on_one_line) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue