Add pen as an input device to the right click handler

This commit is contained in:
Rinigus 2020-03-24 19:52:48 +02:00
parent 5058e3c13e
commit d17c6334da
2 changed files with 2 additions and 2 deletions

View File

@ -110,7 +110,7 @@ HButton {
TapHandler { TapHandler {
acceptedButtons: Qt.RightButton acceptedButtons: Qt.RightButton
acceptedPointerTypes: PointerDevice.GenericPointer acceptedPointerTypes: PointerDevice.GenericPointer | PointerDevice.Pen
onTapped: { onTapped: {
rightClicked() rightClicked()
if (contextMenu) contextMenuLoader.active = true if (contextMenu) contextMenuLoader.active = true

View File

@ -106,7 +106,7 @@ HColumnLayout {
TapHandler { TapHandler {
acceptedButtons: Qt.RightButton acceptedButtons: Qt.RightButton
acceptedPointerTypes: PointerDevice.GenericPointer acceptedPointerTypes: PointerDevice.GenericPointer | PointerDevice.Pen
onTapped: openContextMenu() onTapped: openContextMenu()
} }