I tested it OxideQQuickWebView::itemChange has correct value of activeFocus.
Inside:
itemChangeItemChange : 6 Value : 0 // 6 represent QQuickItem::ItemActiveFocusHasChanged
ActiveFocusItem : 0
So I was wondering if we should move focus handling inside OxideQQuickWebView::itemChange OR
tweak HasFocus()
it seems focusOutEvent comes too early to QQuickItem. by that time activefocus is not updated, so it still holds earlier value.
Once activeFocus of QQuickItem is changed we get ItemChanged(http:// doc.qt. io/qt-5/ qquickitem. html#ItemChange -enum).
I tested it OxideQQuickWebV iew::itemChange has correct value of activeFocus. hange : 6 Value : 0 // 6 represent QQuickItem: :ItemActiveFocu sHasChanged
Inside:
itemChangeItemC
ActiveFocusItem : 0
So I was wondering if we should move focus handling inside OxideQQuickWebV iew::itemChange OR
tweak HasFocus()