Public bug reported: 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: { field.forceActiveFocus() } } } 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 ** Affects: ubuntu-ui-toolkit (Ubuntu) Importance: Undecided Status: New -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1518352 Title: Input doesn't receive activeFocus when focusing a textfield after keyboard dismissed To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/ubuntu-ui-toolkit/+bug/1518352/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs