Comment 6 for bug 1526884

Revision history for this message
Olivier Tilloy (osomon) wrote :

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.