[Bug 1545802] Re: activeFocus not being forwarded to TextInput inside TextField
** Changed in: canonical-devices-system-image Status: Fix Committed => Fix Released -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1545802 Title: activeFocus not being forwarded to TextInput inside TextField To manage notifications about this bug go to: https://bugs.launchpad.net/canonical-devices-system-image/+bug/1545802/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1545802] Re: activeFocus not being forwarded to TextInput inside TextField
note that the same seems to happen at the login window (waking up the device has the password field auto-focused, enabling a BT keyboard unsets the focus and you have to tap it first) -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1545802 Title: activeFocus not being forwarded to TextInput inside TextField To manage notifications about this bug go to: https://bugs.launchpad.net/canonical-devices-system-image/+bug/1545802/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1545802] Re: activeFocus not being forwarded to TextInput inside TextField
** Branch linked: lp:~ubuntu-sdk-team/ubuntu-ui- toolkit/inputMainFocusTrunks ** Changed in: ubuntu-ui-toolkit (Ubuntu) Status: In Progress => Fix Committed -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1545802 Title: activeFocus not being forwarded to TextInput inside TextField To manage notifications about this bug go to: https://bugs.launchpad.net/canonical-devices-system-image/+bug/1545802/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1545802] Re: activeFocus not being forwarded to TextInput inside TextField
** Changed in: canonical-devices-system-image Status: In Progress => Fix Committed -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1545802 Title: activeFocus not being forwarded to TextInput inside TextField To manage notifications about this bug go to: https://bugs.launchpad.net/canonical-devices-system-image/+bug/1545802/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1545802] Re: activeFocus not being forwarded to TextInput inside TextField
** Also affects: ubuntu-ui-toolkit (Ubuntu RTM) 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/1545802 Title: activeFocus not being forwarded to TextInput inside TextField To manage notifications about this bug go to: https://bugs.launchpad.net/canonical-devices-system-image/+bug/1545802/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1545802] Re: activeFocus not being forwarded to TextInput inside TextField
** Branch linked: lp:~ubuntu-sdk-team/ubuntu-ui-toolkit/mainFocus ** Branch linked: lp:~ubuntu-sdk-team/ubuntu-ui-toolkit/inputMainFocus ** Branch linked: lp:~ubuntu-sdk-team/ubuntu-ui- toolkit/inputMainFocusTrunk -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1545802 Title: activeFocus not being forwarded to TextInput inside TextField To manage notifications about this bug go to: https://bugs.launchpad.net/canonical-devices-system-image/+bug/1545802/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1545802] Re: activeFocus not being forwarded to TextInput inside TextField
** Changed in: ubuntu-ui-toolkit (Ubuntu) Status: Confirmed => In Progress -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1545802 Title: activeFocus not being forwarded to TextInput inside TextField To manage notifications about this bug go to: https://bugs.launchpad.net/canonical-devices-system-image/+bug/1545802/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1545802] Re: activeFocus not being forwarded to TextInput inside TextField
** Changed in: canonical-devices-system-image Importance: Undecided => Critical ** Changed in: canonical-devices-system-image Status: New => In Progress ** Changed in: canonical-devices-system-image Milestone: None => 11 ** Changed in: canonical-devices-system-image Assignee: (unassigned) => Zoltan Balogh (bzoltan) -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1545802 Title: activeFocus not being forwarded to TextInput inside TextField To manage notifications about this bug go to: https://bugs.launchpad.net/canonical-devices-system-image/+bug/1545802/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1545802] Re: activeFocus not being forwarded to TextInput inside TextField
I’m looking at the code in InputHandler.qml (https://bazaar.launchpad.net/~ubuntu-sdk-team/ubuntu-ui-toolkit/trunk/view/head:/src/Ubuntu/Components/1.3/InputHandler.qml#L289) and something looks suspicious to me: input.focus is set to false when the main control (in our case the TextField) looses active focus, but I don’t see anywhere where it is restored to true. The following patch seems to fix the regression, although I’m not sure it’s entirely correct, someone familiar with that code should review it and comment: === modified file 'src/Ubuntu/Components/1.3/InputHandler.qml' --- src/Ubuntu/Components/1.3/InputHandler.qml 2016-04-25 10:45:41 + +++ src/Ubuntu/Components/1.3/InputHandler.qml 2016-05-06 07:55:22 + @@ -291,11 +291,7 @@ Connections { target: main ignoreUnknownSignals: true -onActiveFocusChanged: { -if (!main.activeFocus) { -input.focus = false; -} -} +onActiveFocusChanged: input.focus = main.activeFocus onKeyNavigationFocusChanged: { if (main.keyNavigationFocus) { input.forceActiveFocus(); -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1545802 Title: activeFocus not being forwarded to TextInput inside TextField To manage notifications about this bug go to: https://bugs.launchpad.net/canonical-devices-system-image/+bug/1545802/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1545802] Re: activeFocus not being forwarded to TextInput inside TextField
** Tags added: lt-blocker -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1545802 Title: activeFocus not being forwarded to TextInput inside TextField To manage notifications about this bug go to: https://bugs.launchpad.net/canonical-devices-system-image/+bug/1545802/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1545802] Re: activeFocus not being forwarded to TextInput inside TextField
Another occurrence of the issue just happened when running the QML unit tests for this branch: lp:~osomon/webbrowser-app/browserpage. That’s with a different TextField (the search field in the history view, not the address bar), but the symptom is similar: at some point the code calls forceActiveFocus() on the field, and the TextField component gets active focus, but it doesn’t forward it to the QQuickTextInput inside it. -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1545802 Title: activeFocus not being forwarded to TextInput inside TextField To manage notifications about this bug go to: https://bugs.launchpad.net/canonical-devices-system-image/+bug/1545802/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1545802] Re: activeFocus not being forwarded to TextInput inside TextField
The call to forceActiveFocus() that triggers the problem is there: https://bazaar.launchpad.net/~osomon/webbrowser- app/browserpage/view/head:/src/app/webbrowser/HistoryViewWide.qml#L168. -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1545802 Title: activeFocus not being forwarded to TextInput inside TextField To manage notifications about this bug go to: https://bugs.launchpad.net/canonical-devices-system-image/+bug/1545802/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1545802] Re: activeFocus not being forwarded to TextInput inside TextField
Status changed to 'Confirmed' because the bug affects multiple users. ** Changed in: ubuntu-ui-toolkit (Ubuntu) Status: New => Confirmed -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1545802 Title: activeFocus not being forwarded to TextInput inside TextField To manage notifications about this bug go to: https://bugs.launchpad.net/canonical-devices-system-image/+bug/1545802/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1545802] Re: activeFocus not being forwarded to TextInput inside TextField
Another (simpler) way of reproducing this issue on a touch device (initially reported as bug #1578304), on the latest rc-proposed image: - ensure that the webview has active focus - tap once on the address bar The entire text inside the address bar gets selected, as expected, but the active focus remains on the TextField itself, it is not being passed down to the QQuickTextInput inside it. Tapping once again on the address bar then correctly focuses the QQuickTextInput. ** Changed in: ubuntu-ui-toolkit (Ubuntu) Importance: Undecided => Critical -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1545802 Title: activeFocus not being forwarded to TextInput inside TextField To manage notifications about this bug go to: https://bugs.launchpad.net/canonical-devices-system-image/+bug/1545802/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1545802] Re: activeFocus not being forwarded to TextInput inside TextField
** Changed in: canonical-devices-system-image Status: Fix Committed => New -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1545802 Title: activeFocus not being forwarded to TextInput inside TextField To manage notifications about this bug go to: https://bugs.launchpad.net/canonical-devices-system-image/+bug/1545802/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1545802] Re: activeFocus not being forwarded to TextInput inside TextField
** Changed in: ubuntu-ui-toolkit (Ubuntu) Assignee: (unassigned) => Christian Dywan (kalikiana) -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1545802 Title: activeFocus not being forwarded to TextInput inside TextField To manage notifications about this bug go to: https://bugs.launchpad.net/canonical-devices-system-image/+bug/1545802/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1545802] Re: activeFocus not being forwarded to TextInput inside TextField
** Also affects: canonical-devices-system-image Importance: Undecided Status: New ** Changed in: canonical-devices-system-image Status: New => Fix Committed -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1545802 Title: activeFocus not being forwarded to TextInput inside TextField To manage notifications about this bug go to: https://bugs.launchpad.net/canonical-devices-system-image/+bug/1545802/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1545802] Re: activeFocus not being forwarded to TextInput inside TextField
This bug was fixed in the package webbrowser-app - 0.23+16.04.20160408.1-0ubuntu1 --- webbrowser-app (0.23+16.04.20160408.1-0ubuntu1) xenial; urgency=medium [ CI Train Bot ] * Resync trunk. [ Loïc Molinari ] * Made AddressBar height scalable with regards to the grid units system. [ Olivier Tilloy ] * Add dep8 tests and instructions to run them in qemu or on a phone. Original work by Leo Arias and Vincent Ladeuil. added: debian/tests/ debian/tests/control debian/tests/touch-session-autopilot * Catch ESC key event one level up to ensure that it’s not incorrectly bubbled up to the outer component. (LP: #1557016) * Customize the contents of the media permission dialog to avoid truncated text. (LP: #1554220) * Do not write the session to a temporary file when no target file is defined. * Fix a failing unit test with Qt 5.6. (LP: #1565507) * Fix broken webapp container autopilot tests. (LP: #1557019) * Fix issues with item selection in the downloads page: do not allow selecting multiple files when only one is expected do not allow entering delete mode (with a long press on an item) while in picker mode (LP: #1534112, #1561575) * Fix unit tests when run under an sbuild chroot. (LP: #1567294) * Import QQuickShortcut from Qt 5.5 to properly handle window-level keyboard shortcuts. We cannot bump the dependency on Qt to 5.5 as the stable overlay PPA for devices currently has Qt 5.4.1. (LP: #1542224, #1545802, #1537782) * Make the autopilot tests more reliable when dragging the bottom edge. (LP: #1560109) * Remove workaround for bug #1526940 that was fixed in the latest release of the UITK. (LP: #1526940) * Rename debian packages to follow new QML module naming convention. (LP: #1342031) * Simplify the implementation of HistoryViewWide quite a bit, and as a side effect fix a unit test failure when run against the staging branch of the UITK. (LP: #1567337) -- Olivier TilloyFri, 08 Apr 2016 17:07:04 + ** Changed in: webbrowser-app (Ubuntu) Status: In Progress => Fix Released -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1545802 Title: activeFocus not being forwarded to TextInput inside TextField To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/ubuntu-ui-toolkit/+bug/1545802/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1545802] Re: activeFocus not being forwarded to TextInput inside TextField
I still haven’t gotten to the bottom of things, but I found a workaround in the browser: in Browser.qml at line 70¹, if I comment out the call to contentsContainer.forceActiveFocus(), the issue goes away. The underlying bug still exists in the UITK. I’m marking webbrowser-app also affected, and linking a branch that has the workaround. ¹ https://bazaar.launchpad.net/~phablet-team/webbrowser-app/trunk/view/head:/src/app/webbrowser/Browser.qml ** Also affects: webbrowser-app (Ubuntu) Importance: Undecided Status: New ** Changed in: webbrowser-app (Ubuntu) Assignee: (unassigned) => Olivier Tilloy (osomon) ** Changed in: webbrowser-app (Ubuntu) Importance: Undecided => High ** Changed in: webbrowser-app (Ubuntu) Status: New => In Progress -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1545802 Title: activeFocus not being forwarded to TextInput inside TextField To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/ubuntu-ui-toolkit/+bug/1545802/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1545802] Re: activeFocus not being forwarded to TextInput inside TextField
** Branch linked: lp:~osomon/webbrowser-app/qquickshortcuts -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1545802 Title: activeFocus not being forwarded to TextInput inside TextField To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/ubuntu-ui-toolkit/+bug/1545802/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1545802] Re: activeFocus not being forwarded to TextInput inside TextField
Yep, that analysis is correct, but I still don’t know what sets focus to false on the QQuickTextInput, and why. -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1545802 Title: activeFocus not being forwarded to TextInput inside TextField To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/ubuntu-ui-toolkit/+bug/1545802/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1545802] Re: activeFocus not being forwarded to TextInput inside TextField
That should not make a difference, as far as I know. FocusScope redirects focus to the last child who requested it. I believe in this case, the problem might be that something is setting focus:false on the QQuickTextInput. When you do that, the FocusScope does not know whom to redirect the focus to anymore, as far I know. And that would explain why nothing is happening. So, in the beginning TextInput has focus true, so when TextField is focused it redirects the focus to QQuickTextInput. Then somehow QQuickTextInput focus is set to false. The next time TextField is focused, it doesn't redirect the focus to QQuickTextInput because it is actually *not* asking for focus (i.e. it's focus property is false). Hope that helps :) -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1545802 Title: activeFocus not being forwarded to TextInput inside TextField To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/ubuntu-ui-toolkit/+bug/1545802/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1545802] Re: activeFocus not being forwarded to TextInput inside TextField
I’m still unable to reproduce the issue in a standalone example, however there is clearly a problem with the TextField component in the UITK, if it allows active focus to not be forwarded to its child QQuickTextInput under certain circumstances. In TextField.qml, the TextInput element (with id 'editor') is inside a Flickable (id 'flicker'), which itself is a child of the top-level ActionItem. ActionItem is a focus scope, but Flickable isn’t. I’m not sure how a focus scope is supposed to behave when the item that has 'focus: true' isn’t a direct child. -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1545802 Title: activeFocus not being forwarded to TextInput inside TextField To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/ubuntu-ui-toolkit/+bug/1545802/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1545802] Re: activeFocus not being forwarded to TextInput inside TextField
The same issue affects https://code.launchpad.net/~osomon/webbrowser- app/qquickshortcuts/+merge/290299 (which changes the condition for focusing the address bar on opening a new tab from [wide layout] to [has physical keyboard]). -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1545802 Title: activeFocus not being forwarded to TextInput inside TextField To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/ubuntu-ui-toolkit/+bug/1545802/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1545802] Re: activeFocus not being forwarded to TextInput inside TextField
The problem persists in the latest rc-proposed image. -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1545802 Title: activeFocus not being forwarded to TextInput inside TextField To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/ubuntu-ui-toolkit/+bug/1545802/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1545802] Re: activeFocus not being forwarded to TextInput inside TextField
I’ve replaced the implementation of the AddressBar component with a simple TextField with no added cruft (only placeholder properties and signals that embedders expect), and the problem persists, so it’s not with the AddressBar implementation. -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1545802 Title: activeFocus not being forwarded to TextInput inside TextField To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/ubuntu-ui-toolkit/+bug/1545802/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1545802] Re: activeFocus not being forwarded to TextInput inside TextField
I have commented out the definition of the custom primaryItem and secondaryItem in the browser’s AddressBar, and the problem persists. So at least we can rule out those two custom components stealing focus. -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1545802 Title: activeFocus not being forwarded to TextInput inside TextField To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/ubuntu-ui-toolkit/+bug/1545802/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1545802] Re: activeFocus not being forwarded to TextInput inside TextField
I added some debugging to TextField13.qml, and I can confirm that when I observe the issue, 'focus' is being set to false on the QQuickTextInput. -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1545802 Title: activeFocus not being forwarded to TextInput inside TextField To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/ubuntu-ui-toolkit/+bug/1545802/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1545802] Re: activeFocus not being forwarded to TextInput inside TextField
I just tried a very ugly hack to work around the issue: TextField { objectName: "addressBarTextField" onActiveFocusChanged: { if (activeFocus) { var textInput = findChild(textField, "text_input") console.log("address bar got active focus, text input =", textInput) textInput.forceActiveFocus() console.log("after forcing active focus on text input", textInput) } } } Where findChild() is copied from UbuntuTestCase to recursively search for a given descendant by objectName. Well I’m seeing this output: qml: AFI: QQuickTextInput(0xb779c760, "text_input") qml: address bar got active focus, text input = QQuickTextInput(0xb779c760, "text_input") qml: after forcing active focus on text input QQuickTextInput(0xb779c760, "text_input") qml: AFI: TextField_QMLTYPE_61_QML_146(0xb7793c28, "addressBarTextField") So this hack isn’t even working. But it seems to indicate that active focus is removed from the TextInput, but remains on the ancestor TextField. Why that happens remains to be explained. -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1545802 Title: activeFocus not being forwarded to TextInput inside TextField To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/ubuntu-ui-toolkit/+bug/1545802/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs