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.

** Summary changed:

- TextInput inside TextField not being forwarded activeFocus
+ activeFocus not being forwarded to TextInput inside TextField

-- 
You received this bug notification because you are a member of Ubuntu
Touch seeded packages, which is subscribed to ubuntu-ui-toolkit in
Ubuntu.
https://bugs.launchpad.net/bugs/1545802

Title:
  activeFocus not being forwarded to TextInput inside TextField

Status in ubuntu-ui-toolkit package in Ubuntu:
  New

Bug description:
  Haven’t managed to reproduce with a standalone example yet, but I can
  reliably reproduce the following issue with the browser app on a
  tablet with a bluetooth keyboard connected (this needs to be on a
  tablet so that the wide layout of the app is used, for example with a
  Nexus 7 (flo) in landscape orientation):

   1) launch the browser app with a bluetooth keyboard attached and ensure that 
the current tab is not a new tab
   2) press Ctrl+T to open a new tab

  Expected result: the address bar gets active focus so that the user
  can start entering a URL right away

  Current result: the address bar gets active focus for a fraction of a
  second, then looses it. When that happens, pressing Ctrl+L (which
  forces focus on the address bar) doesn’t fix it.

  
  I added some debugging to the browser (printing Window.activeFocusItem 
whenever it changes), and it appears that when initially forcing active focus 
on the address bar the QQuickTextInput inside it gets active focus, then looses 
it. At that point the activeFocusItem is the TextField, but it doesn’t forward 
it to QQuickTextInput inside itself.

  That situation can be remedied by using a bluetooth mouse to click on
  the address bar, which restores active focus on the QQuickTextInput.

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/ubuntu-ui-toolkit/+bug/1545802/+subscriptions

-- 
Mailing list: https://launchpad.net/~touch-packages
Post to     : [email protected]
Unsubscribe : https://launchpad.net/~touch-packages
More help   : https://help.launchpad.net/ListHelp

Reply via email to