Public bug reported:

Run this code:

import QtQuick 2.4
import Ubuntu.Components 1.3

Item {
    width: units.gu(50)
    height: units.gu(50)

    ListView {
        anchors.fill: parent
        model: 10
        orientation: ListView.Horizontal
        delegate: ListItem {
            width: units.gu(5)
            height: units.gu(5)
            Button {
                activeFocusOnTab: false
                anchors {
                    fill: parent
                    margins: units.gu(1)
                }
                text: "Button #" + index
            }
        }
    }
}

Use TAB to select the first ListItem in the list. Pressing the LEFT
arrow after that will put the focus on the Button in the first ListItem
(you can see the focus outline changing).

The same happens when using keyboard navigation to go to the last
ListItem and then pressing the RIGHT cursor key.

I could not reproduce the issue with a vertical ListView.

This gives problems for the new Toolbar with scrolling icons inside it,
because there I am wrapping an AbstractButton inside a ListItem in order
to be able to get cursor key navigation until this bug is fixed:
https://bugs.launchpad.net/ubuntu/+source/ubuntu-ui-toolkit/+bug/1573616

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

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

Title:
  activeFocusOnTab is ignored when Button is embedded inside ListItem in
  a horizontal ListView

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

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

Reply via email to