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<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

-- 
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

Reply via email to