diff --git a/app/qml/mousepad.qml b/app/qml/mousepad.qml index 83edddc1e..bf867555e 100644 --- a/app/qml/mousepad.qml +++ b/app/qml/mousepad.qml @@ -56,7 +56,7 @@ Kirigami.Page wrapMode: Text.Wrap horizontalAlignment: Text.AlignHCenter - text: i18n("Press the left and right mouse buttons at the same time to unlock") + text: i18n("Press %1 or the left and right mouse buttons at the same time to unlock", unlockShortcut.nativeText) } Connections { @@ -75,6 +75,15 @@ Kirigami.Page onTapped: lockButton.visible = false } + Shortcut { + id: unlockShortcut + sequence: "Alt+X" + onActivated: { + console.log("shortcut triggered, unlocking") + PointerLocker.isLocked = false + } + } + onClicked: { var clickType = ""; var packet = {};