[Touch-packages] [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 Touch seeded packages, 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(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 -- Mailing list: https://launchpad.net/~touch-packages Post to : touch-packages@lists.launchpad.net Unsubscribe : https://launchpad.net/~touch-packages More help : https://help.launchpad.net/ListHelp
[Touch-packages] [Bug 1573616] Re: ListView keyboard navigation focus using arrow keys only works with ListItem as a delegate
*Only part of the comment from the code was copied above, here is the full comment: // FIXME: This ListItem { AbstractButton { } } construction can be avoided // when StyledItem supports cursor keys navigation, see bug #1573616 -- You received this bug notification because you are a member of Ubuntu Touch seeded packages, 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: Confirmed Bug description: We have this code to set the navigation focus for ListItems: void ListViewProxy::setKeyNavigationForListView(bool value) { UCListItem *listItem = qobject_cast(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 -- Mailing list: https://launchpad.net/~touch-packages Post to : touch-packages@lists.launchpad.net Unsubscribe : https://launchpad.net/~touch-packages More help : https://help.launchpad.net/ListHelp
[Touch-packages] [Bug 1573616] Re: ListView keyboard navigation focus using arrow keys only works with ListItem as a delegate
I am currently working on ScrollingActionBarStyle for the scrolling of icons in the toolbar, and for this I currently have code like this: // when StyledItem supports cursor keys navigation, see bug #1573616 defaultDelegate: ListItem { width: units.gu(4) height: units.gu(4) AbstractButton { anchors.fill: parent style: IconButtonStyle { } objectName: action.objectName + "_button" action: modelData } } That ugly construction is currently needed to make the keyboard navigation with arrow keys work. It would not be needed when StyledItem supports the cursor key navigation. ** Changed in: ubuntu-ui-toolkit (Ubuntu) Importance: Undecided => High -- You received this bug notification because you are a member of Ubuntu Touch seeded packages, 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: Confirmed Bug description: We have this code to set the navigation focus for ListItems: void ListViewProxy::setKeyNavigationForListView(bool value) { UCListItem *listItem = qobject_cast(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 -- Mailing list: https://launchpad.net/~touch-packages Post to : touch-packages@lists.launchpad.net Unsubscribe : https://launchpad.net/~touch-packages More help : https://help.launchpad.net/ListHelp
[Touch-packages] [Bug 1573616] Re: ListView keyboard navigation focus using arrow keys only works with ListItem as a delegate
** Changed in: ubuntu-ui-toolkit (Ubuntu) Assignee: Christian Dywan (kalikiana) => (unassigned) -- You received this bug notification because you are a member of Ubuntu Touch seeded packages, 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: Confirmed Bug description: We have this code to set the navigation focus for ListItems: void ListViewProxy::setKeyNavigationForListView(bool value) { UCListItem *listItem = qobject_cast(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 -- Mailing list: https://launchpad.net/~touch-packages Post to : touch-packages@lists.launchpad.net Unsubscribe : https://launchpad.net/~touch-packages More help : https://help.launchpad.net/ListHelp
[Touch-packages] [Bug 1573616] Re: ListView keyboard navigation focus using arrow keys only works with ListItem as a delegate
** Changed in: ubuntu-ui-toolkit (Ubuntu) Assignee: (unassigned) => Christian Dywan (kalikiana) -- You received this bug notification because you are a member of Ubuntu Touch seeded packages, 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: Confirmed Bug description: We have this code to set the navigation focus for ListItems: void ListViewProxy::setKeyNavigationForListView(bool value) { UCListItem *listItem = qobject_cast(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 -- Mailing list: https://launchpad.net/~touch-packages Post to : touch-packages@lists.launchpad.net Unsubscribe : https://launchpad.net/~touch-packages More help : https://help.launchpad.net/ListHelp
[Touch-packages] [Bug 1573616] Re: ListView keyboard navigation focus using arrow keys only works with ListItem as a delegate
Status changed to 'Confirmed' because the bug affects multiple users. ** Changed in: ubuntu-ui-toolkit (Ubuntu) Status: New => Confirmed -- You received this bug notification because you are a member of Ubuntu Touch seeded packages, 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: Confirmed Bug description: We have this code to set the navigation focus for ListItems: void ListViewProxy::setKeyNavigationForListView(bool value) { UCListItem *listItem = qobject_cast(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 -- Mailing list: https://launchpad.net/~touch-packages Post to : touch-packages@lists.launchpad.net Unsubscribe : https://launchpad.net/~touch-packages More help : https://help.launchpad.net/ListHelp