From 00680bea72e4359c11950f1ea707d43c59c8631e Mon Sep 17 00:00:00 2001 From: Stanislaw Halik Date: Tue, 25 Jan 2022 23:48:55 +0100 Subject: logic/shortcuts: ignore kbd modifiers for mouse Issue: #583 --- logic/shortcuts.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/logic/shortcuts.cpp b/logic/shortcuts.cpp index 850425c6..df21f7d2 100644 --- a/logic/shortcuts.cpp +++ b/logic/shortcuts.cpp @@ -51,6 +51,12 @@ void Shortcuts::bind_shortcut(K& key, const key_opts& k, bool held) int idx = 0; QKeySequence code(QKeySequence::UnknownKey); + if (k.guid == QStringLiteral("mouse")) + { + key.guid = k.guid; + key.keycode = k.button; + key.held = held; + } if (!k.guid->isEmpty()) { key.guid = k.guid; -- cgit v1.2.3