Focus on clicked AppListItem.

This commit is contained in:
Dain Nilsson 2024-01-19 12:59:57 +01:00
parent e4d49ea4b4
commit de213e10fb
No known key found for this signature in database
GPG Key ID: F04367096FBA95E8

View File

@ -94,6 +94,7 @@ class _AppListItemState<T> extends ConsumerState<AppListItem> {
}
},
onTap: () {
_focusNode.requestFocus();
if (tapIntent != null) {
Actions.invoke(context, tapIntent);
}
@ -105,7 +106,6 @@ class _AppListItemState<T> extends ConsumerState<AppListItem> {
});
Actions.invoke(context, doubleTapIntent);
} else {
_focusNode.requestFocus();
setState(() {
_lastTap = now;
});