QQuickWindow::activeFocusItem  will still be tricky.

There seems to be fundamental issue with focus events  sent.

FocusEvent are only sent to Item when its activeFocus = true;
So when we focus is removed from item it won't immediately set 
activeFocus=false(since item won't get focus event then). What is does is, 
first send focusOutEvent to item, then set activeFocus = false;

And when webview is clicked we forcefully need to set
activeFocus=true(item_->forceActiveFocus in handleMousePress). then item
is eligible to receive focusInEvent.

In short activeFocus is updated after focusOutEvent and before
focusInEvent.

In this way In focusOutEvent both activeFocus and
QQuickWindow::activeFocusItem  both are not upated,
QQuickWindow::activeFocusItem is specifically nullptr

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

Title:
  Webview appears to think it's in focus when typing in the addressbar

Status in Oxide:
  Triaged
Status in webbrowser-app package in Ubuntu:
  Invalid

Bug description:
  See the screenshot - when keyboard focus is on the addressbar, the
  webview thinks it is still in focus (indicated by the presence of the
  caret in the search field).

  Not sure if this is Oxide or webbrowser-app

To manage notifications about this bug go to:
https://bugs.launchpad.net/oxide/+bug/1599771/+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