Focus can go be moved inside ListItem in a horizontal ListView
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
ubuntu-ui-toolkit (Ubuntu) |
Fix Released
|
High
|
Zsombor Egri |
Bug Description
Run this code:
import QtQuick 2.4
import Ubuntu.Components 1.3
Item {
width: units.gu(50)
height: units.gu(50)
ListView {
model: 10
delegate: ListItem {
width: units.gu(5)
height: units.gu(5)
Button {
}
}
}
}
}
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:/
Related branches
- ubuntu-sdk-build-bot: Approve (continuous-integration)
- Cris Dywan: Approve
-
Diff: 227 lines (+80/-7)14 files modifiedsrc/UbuntuToolkit/ucbottomedgehint.cpp (+3/-0)
src/imports/Components/1.3/Button.qml (+1/-0)
src/imports/Components/1.3/CheckBox.qml (+1/-0)
src/imports/Components/1.3/ComboButton.qml (+1/-0)
src/imports/Components/1.3/Slider.qml (+1/-0)
src/imports/Components/1.3/TextArea.qml (+1/-0)
src/imports/Components/1.3/TextField.qml (+1/-0)
src/imports/Components/Themes/Ambiance/1.3/ActionBarStyle.qml (+1/-0)
src/imports/Components/Themes/Ambiance/1.3/FocusShape.qml (+0/-7)
src/imports/Components/Themes/Ambiance/1.3/PageHeadStyle.qml (+1/-0)
src/imports/Components/Themes/Ambiance/1.3/PageHeaderStyle.qml (+1/-0)
src/imports/Components/Themes/Ambiance/1.3/ToolbarStyle.qml (+1/-0)
tests/unit/visual/tst_actionbar.13.qml (+1/-0)
tests/unit/visual/tst_listitem_horizontal_navigation.13.qml (+66/-0)
Changed in ubuntu-ui-toolkit (Ubuntu): | |
status: | New → Confirmed |
Changed in ubuntu-ui-toolkit (Ubuntu): | |
assignee: | nobody → Zsombor Egri (zsombi) |
summary: |
- activeFocusOnTab is ignored when Button is embedded inside ListItem in a - horizontal ListView + Focus can go be moved inside ListItem in a horizontal ListView |
Changed in ubuntu-ui-toolkit (Ubuntu): | |
status: | In Progress → Fix Committed |
I set the importance to High because this needs to be fixed for for toolbar keyboard navigation https:/ /bugs.launchpad .net/ubuntu/ +source/ ubuntu- ui-toolkit/ +bug/1575893 /bugs.launchpad .net/ubuntu/ +source/ ubuntu- ui-toolkit/ +bug/1573616 is fixed, it is no longer needed and the importance of this bug can be reduced.
but once https:/