Comment 3 for bug 1316057

Revision history for this message
Zsombor Egri (zsombi) wrote :

I did some investigation on what are the differences on the input elements (TextInput and TextEdit used in TextField and TextArea) and found that autoFocusOnPressed is the only difference on the component setup. In the previous setup we had this property untouched (its default value is true) and now we have it set to false. And seems this causes the problem.

I managed to reproduce the failure with a simple TextInput or TextEdit component whos autoFocusOnPressed is set to false.

inport QtQuick 2.0

Item {
    width: 100; height: 100
    Component.onCompleted: input.forceActiveFocus()

    TextInput {
        width: 100; height: 30
        text: "Here I am"
        autoFocusOnPressed: false
        onActiveFocusChanged: print("activeFocus=", activeFocus)
        onFocusChanged: print("focus=", focus)
    }
}

This example will show the cursor blinking in the text input, but OSK will not be shown ever.

I suspect OSK as first, and as second Qt QML implementation.