Expose focusOnTab on StyledItem
Bug #1486274 reported by
Cris Dywan
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Canonical System Image |
Fix Released
|
High
|
Zoltan Balogh | ||
ubuntu-ui-toolkit (Ubuntu RTM) |
Fix Released
|
High
|
Cris Dywan |
Bug Description
Due to a bug in QML it's impossible to set focusOnTab, but this is vital because in most cases keyboard tab navigation is in fact desirable but focus shouldn't be grabbed on tap/ click.
Related branches
lp://staging/~ubuntu-sdk-team/ubuntu-ui-toolkit/focusPassesFromChildToParent
- PS Jenkins bot: Approve (continuous-integration)
- Zsombor Egri: Approve
-
Diff: 243 lines (+60/-11)8 files modifiedcomponents.api (+1/-0)
src/Ubuntu/Components/1.3/TextArea.qml (+9/-1)
src/Ubuntu/Components/1.3/TextField.qml (+12/-1)
src/Ubuntu/Components/plugin/ucabstractbutton.cpp (+1/-0)
src/Ubuntu/Components/plugin/ucstyleditembase.cpp (+10/-1)
src/Ubuntu/Components/plugin/ucstyleditembase.h (+9/-0)
tests/unit_x11/tst_components/tst_focus.qml (+4/-3)
tests/unit_x11/tst_components/tst_textinput_common13.qml (+14/-5)
Changed in ubuntu-ui-toolkit (Ubuntu): | |
status: | Confirmed → Fix Committed |
affects: | ubuntu-ui-toolkit (Ubuntu) → ubuntu-ui-toolkit (Ubuntu RTM) |
Changed in canonical-devices-system-image: | |
assignee: | nobody → Zoltan Balogh (bzoltan) |
importance: | Undecided → Critical |
milestone: | none → ww02-2016 |
status: | New → Fix Committed |
importance: | Critical → High |
Changed in canonical-devices-system-image: | |
status: | Fix Committed → Fix Released |
To post a comment you must log in.
Possible work-around: expose focusOnTab by re-declaring it inside UCStyledItemBase.
Catch: Only seems to work inside the implementation of the components, not in an app merely using components, so not sufficient for all use cases.
New property: as awkward as it may seem we could also have eg. focusOnKeyboard Navigation, avoiding the QML bug altogether.
Catch: possibly unexpected to app developers and needs to be well-communicated and documented.