Some times left/right arrow keys move the focus inside the ListItem in a horizontal ListView.

Bug #1614541 reported by Tim Peeters
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
ubuntu-ui-toolkit (Ubuntu)
New
Undecided
Unassigned

Bug Description

For the first and last ListItem inside a ListView, the left/right arrow key will move the focus inside the ListItem, instead of navigating between ListItems. For the other ListItems this is not the case, so I expect the focus not to change when pressing left when the first ListItem is focussed, or right when the last ListItem is focussed.

To reproduce, execute this program:

import QtQuick 2.4
import Ubuntu.Components 1.3

Item {
    width: units.gu(50)
    height: units.gu(50)
    ListView {
        anchors.fill: parent
        orientation: ListView.Horizontal
        delegate: ListItem {
            width: units.gu(20)
            Button {
                anchors.centerIn: parent
                text: "focus"
            }
        }
        model: 4
    }
}

Press TAB to put the focus on the first ListItem. After that, pressing LEFT will move the focus from the first ListItem to inside the ListItem. Pressing RIGHT will navigate to the other ListItems (until the last one is focussed, then it will move the focus inside the last ListItem).

This needs to be fixed for the Toolbar focus navigation to work properly, see https://bugs.launchpad.net/ubuntu/+source/ubuntu-ui-toolkit/+bug/1575893

Tags: convergence
Tim Peeters (tpeeters)
description: updated
tags: added: convergence
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.