Comment 1 for bug 1545802

Revision history for this message
Olivier Tilloy (osomon) wrote : Re: TextInput inside TextField not being forwarded activeFocus

Here’s the additional debug output from the instrumented browser:

[launching the browser, before pressing Ctrl+T]
qml: AFI: Browser_QMLTYPE_185(0xb7cc5ae0)
qml: AFI: QQuickFocusScope(0xb7d0f8c8)
qml: AFI: QQuickFocusScope_QML_174(0xb80651a8)
qml: AFI: WebViewImpl_QMLTYPE_122_QML_197(0xb80a5398)

[after pressing Ctrl+T]
qml: AFI: QQuickTextInput(0xb7d844a8, "text_input")
qml: AFI: WebViewImpl_QMLTYPE_122_QML_197(0xb80a5398)
qml: AFI: QQuickListView(0xb814e608, "foldersList")
qml: AFI: UrlPreviewGrid_QMLTYPE_134(0xb81266a0, "topSitesList")
qml: AFI: UrlPreviewDelegate_QMLTYPE_132(0xb818f010, "topSiteItem")
qml: AFI: QQuickTextInput(0xb7d844a8, "text_input")
qml: AFI: TextField_QMLTYPE_71(0xb7d7b970, "addressBarTextField")

As can be seen with the last two lines, activeFocus is initially forwarded to the QQuickTextInput inside the TextField, and then for some reason activeFocus switches back to the parent TextField, but is removed from the QQuickTextInput.