Public bug reported:

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.

** Affects: ubuntu-ui-toolkit (Ubuntu)
     Importance: Undecided
         Status: Confirmed

** Summary changed:

- ListView navigation using arrow keys only works with ListItem as a delegate
+ ListView keyboard navigation focus using arrow keys only works with ListItem 
as a delegate

** Description changed:

- We can at least add code to StyledItem to make it work for that as well.
- I don't know if there can be a generic solution for Items as well.
+ 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.

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1573616

Title:
  ListView keyboard navigation focus using arrow keys only works with
  ListItem as a delegate

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/ubuntu-ui-toolkit/+bug/1573616/+subscriptions

-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to