Hide Control focus when given via mouse input

This commit is contained in:
Michael Alexsander 2025-09-03 20:39:18 -03:00
parent 2753d333f6
commit aeb3a45c97
No known key found for this signature in database
GPG key ID: A9C91EE110F4EABA
53 changed files with 229 additions and 105 deletions

View file

@ -363,7 +363,8 @@ void ProjectManager::_select_main_view(int p_id) {
if (current_main_view == MAIN_VIEW_PROJECTS && search_box->is_inside_tree()) {
// Automatically grab focus when the user moves from the Templates tab
// back to the Projects tab.
search_box->grab_focus();
// Needs to be deferred, otherwise the focus outline is always drawn.
callable_mp((Control *)search_box, &Control::grab_focus).call_deferred(true);
}
// The Templates tab's search field is focused on display in the asset