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
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue