queryAccessibleInterface will return 0 if the object is a QWindow, so
it would never find the focus child.
Change-Id: Ib5bb6a0e4ffbf1b8491b71d1ba5a039e7a6584e0
Reviewed-on: http://codereview.qt-project.org/5842
Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com>
Reviewed-by: Frederik Gladhorn <frederik.gladhorn@nokia.com>
targetObject = object();
break;
case FocusChild:
- targetObject = QGuiApplication::activeWindow();
+ if (QWindow *window = QGuiApplication::activeWindow()) {
+ *target = window->accessibleRoot();
+ return 0;
+ }
break;
case Ancestor:
*target = parent();