ubuntu-sdk-bugs team mailing list archive
-
ubuntu-sdk-bugs team
-
Mailing list archive
-
Message #07141
[Bug 1573616] Re: ListView keyboard navigation focus using arrow keys only works with ListItem as a delegate
A ListView can navigate with the horizontal or vertical keys (depending
on the orientation) *only* if is focused. This can be achieved by
setting the activeFocusOnTab: true or by setting the currentIndex
through a mouse button click. The ListViewProxy mentioned above it is
only active if the ListView has ViewItems attached properties defined
explicitly of the ListView uses ListItem as delegate (in which case the
ViewItems will automatically be attached). UbuntuListView doesn't use
ViewItems attached properties at all.
The bug is invalid :)
** Changed in: ubuntu-ui-toolkit (Ubuntu)
Status: Confirmed => Invalid
--
You received this bug notification because you are a member of Ubuntu
SDK bug tracking, which is subscribed to ubuntu-ui-toolkit in Ubuntu.
https://bugs.launchpad.net/bugs/1573616
Title:
ListView keyboard navigation focus using arrow keys only works with
ListItem as a delegate
Status in ubuntu-ui-toolkit package in Ubuntu:
Invalid
Bug description:
We have this code to set the navigation focus for ListItems:
void ListViewProxy::setKeyNavigationForListView(bool value)
{
UCListItem *listItem = qobject_cast<UCListItem*>(currentItem());
if (listItem) {
UCListItemPrivate::get(listItem)->setListViewKeyNavigation(value);
listItem->update();
}
}
We can at least add code to StyledItem (and update ListViewProxy) to
make it work for that as well. I don't know if there can be a generic
solution for Items as well.
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/ubuntu-ui-toolkit/+bug/1573616/+subscriptions
References