Add pen as an input device to the right click handler
This commit is contained in:
parent
5058e3c13e
commit
d17c6334da
|
@ -110,7 +110,7 @@ HButton {
|
|||
|
||||
TapHandler {
|
||||
acceptedButtons: Qt.RightButton
|
||||
acceptedPointerTypes: PointerDevice.GenericPointer
|
||||
acceptedPointerTypes: PointerDevice.GenericPointer | PointerDevice.Pen
|
||||
onTapped: {
|
||||
rightClicked()
|
||||
if (contextMenu) contextMenuLoader.active = true
|
||||
|
|
|
@ -106,7 +106,7 @@ HColumnLayout {
|
|||
|
||||
TapHandler {
|
||||
acceptedButtons: Qt.RightButton
|
||||
acceptedPointerTypes: PointerDevice.GenericPointer
|
||||
acceptedPointerTypes: PointerDevice.GenericPointer | PointerDevice.Pen
|
||||
onTapped: openContextMenu()
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user