For the default context menu exposed by the Ubuntu WebView (which is what is used in e.g. the gmail webapp), the implementation uses an ActionSelectionPopover, which inherits Popover, which doesn’t steal focus when displayed. However tapping an action in the menu does steal the focus.
If I change the implementation of Popover (/usr/lib/arm-linux- gnueabihf/qt5/qml/Ubuntu/Components/Popups/1.3/Popover.qml) to not request active focus on press (https://bazaar.launchpad.net/~ubuntu-sdk- team/ubuntu-ui- toolkit/trunk/view/head:/src/Ubuntu/Components/Popups/1.3/Popover.qml#L209), then the webview retains focus as expected. -- 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 ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs