diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2022-01-25 23:48:55 +0100 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2022-01-25 23:55:03 +0100 |
commit | 00680bea72e4359c11950f1ea707d43c59c8631e (patch) | |
tree | 1d67bcedb43f8ab82bda3545d06b27757d065a10 /logic/shortcuts.cpp | |
parent | 68000e9f3df1ec218680bdfd565b9e0fbd90ff55 (diff) |
logic/shortcuts: ignore kbd modifiers for mouse
Issue: #583
Diffstat (limited to 'logic/shortcuts.cpp')
-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; |