Applying the above workaround without modifying the UITK is easy enough
with the following trick, inside the context menu component:

    Binding {
        target: __foreground
        property: "activeFocusOnPress"
        value: false
    }

This works for context menu implementations based on Popover (or
ActionSelectionPopover), but unfortunately it doesn’t for the browser’s
mobile implementation, which inherits Dialog, because Dialog also does
this:

    Component.onCompleted: foreground.forceActiveFocus()

Not sure how to inhibit this behaviour.

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1526884

Title:
  context menu steals focus from the webview

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/webbrowser-app/+bug/1526884/+subscriptions

-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to