Input doesn't receive activeFocus when focusing a textfield after keyboard dismissed
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Canonical System Image |
Fix Released
|
High
|
Zoltan Balogh | ||
ubuntu-ui-toolkit (Ubuntu RTM) |
Fix Released
|
High
|
Michael Sheldon |
Bug Description
When setting focus programmatically on a TextField the input area doesn't receive focus correctly if the keyboard has been previously dismissed by the user while in that field.
Dismissing the keyboard removes activeFocus from the input component inside the TextField, and this is never restored when setting focus on the TextField as a whole (it does get restored if the TextField is clicked by the user).
Steps to reproduce:
1) Run the following QML:
import QtQuick 2.4
import Ubuntu.Components 1.3
Column {
width: 600
height: 800
TextField {
id: field
anchors {
left: parent.left
right: parent.right
}
}
Button {
text: "Set Focus"
anchors {
left: parent.left
right: parent.right
}
onClicked: {
}
}
}
2) Tap the input area
3) Swipe down on the keyboard to dismiss it
4) Press "Set Focus" button
Expected result:
TextField should receive focus, display the input caret and show the keyboard
Actual result:
The TextField receives focus, but the input component inside it doesn't receive activeFocus and the input caret and keyboard aren't displayed
Related branches
- PS Jenkins bot: Approve (continuous-integration)
- Cris Dywan: Approve
-
Diff: 133 lines (+88/-2)4 files modifiedsrc/Ubuntu/Components/1.2/InputHandler.qml (+5/-1)
src/Ubuntu/Components/1.3/InputHandler.qml (+5/-1)
tests/unit/tst_components/tst_inputhandler_v12.qml (+39/-0)
tests/unit/tst_components/tst_inputhandler_v13.qml (+39/-0)
Changed in canonical-devices-system-image: | |
milestone: | none → ww02-2016 |
assignee: | nobody → Zoltan Balogh (bzoltan) |
Changed in ubuntu-ui-toolkit (Ubuntu): | |
assignee: | nobody → Zoltan Balogh (bzoltan) |
importance: | Undecided → High |
Changed in canonical-devices-system-image: | |
importance: | Undecided → High |
affects: | ubuntu-ui-toolkit (Ubuntu) → ubuntu-ui-toolkit (Ubuntu RTM) |
Changed in ubuntu-ui-toolkit (Ubuntu RTM): | |
status: | In Progress → Fix Committed |
Changed in canonical-devices-system-image: | |
status: | In Progress → Fix Committed |
Changed in canonical-devices-system-image: | |
status: | Fix Committed → Fix Released |
Depends on fix to bug #1518357