Don't allow long-pressing on non-touchscreen devices

It isn't the right kind of interaction on a computer with a mouse or
trackpad, it should be relegated to touchscreen only. This should
hopefully cover everything from room list delegates to messages.
This commit is contained in:
Joshua Goins
2025-02-21 16:07:31 -05:00
parent 94fdf777cb
commit 88d684b6c1
9 changed files with 27 additions and 4 deletions

View File

@@ -132,6 +132,7 @@ a{
TapHandler {
enabled: !root.hoveredLink
acceptedButtons: Qt.LeftButton
acceptedDevices: PointerDevice.TouchScreen
onLongPressed: root.showMessageMenu()
}
}