diff options
-rw-r--r-- | logic/shortcuts.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
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; |