Merge branch 'xxSeys1-ItemsListNoSelectionAutoFirst'
This commit is contained in:
@@ -611,6 +611,16 @@ namespace FlaxEditor.GUI
|
|||||||
OnClickItem(focusedItem);
|
OnClickItem(focusedItem);
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
// Select first item if no item is focused (most likely to be the best result), saves the user from pressing arrow down first
|
||||||
|
var visibleItems = GetVisibleItems();
|
||||||
|
if (visibleItems.Count > 0)
|
||||||
|
{
|
||||||
|
OnClickItem(visibleItems[0]);
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
}
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user