Don't open the app context menu for mouse clicks

This commit is contained in:
Cameron Gutman 2019-04-03 20:27:00 -07:00
parent ce5dac07d3
commit 948910bfa2

View file

@ -198,9 +198,9 @@ GridView {
stackView.push(segue) stackView.push(segue)
} }
onClicked: { Keys.onReturnPressed: {
if (model.running) { if (model.running) {
// This will primarily be keyboard/gamepad driven so use // This will be keyboard/gamepad driven so use
// open() instead of popup() // open() instead of popup()
appContextMenu.open() appContextMenu.open()
} }
@ -211,7 +211,7 @@ GridView {
Keys.onMenuPressed: { Keys.onMenuPressed: {
if (model.running) { if (model.running) {
// This will primarily be keyboard/gamepad driven so use // This will be keyboard/gamepad driven so use
// open() instead of popup() // open() instead of popup()
appContextMenu.open() appContextMenu.open()
} }