Merge pull request #9544 from humbletim/fix-rightclick-menu

Hide webview context menus when clicked
This commit is contained in:
Brad Hefta-Gaub 2017-01-31 13:03:50 -08:00 committed by GitHub
commit 2fc6b4b0af
2 changed files with 2 additions and 0 deletions

View file

@ -33,6 +33,7 @@ Item {
propagateComposedEvents: true
acceptedButtons: "AllButtons"
onClicked: {
menu.visible = false;
menu.done();
mouse.accepted = false;
}

View file

@ -32,6 +32,7 @@ Item {
MouseArea {
anchors.fill: parent
onClicked: {
menu.visible = false;
root.triggered();
menu.done();
}