summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2015-11-11 14:35:13 +0100
committerStanislaw Halik <sthalik@misaki.pl>2015-11-11 14:36:57 +0100
commit605d267622b8d2e69bc761f4f49442566164d843 (patch)
tree7a1e7ec580378e11df103ef16d9d5191c81b142c
parent4c2529611677e204b7ecf40508723f355cfd423b (diff)
joy: pass shortcut only if pressed, not depressed
Issue: #118 Reported-by: @Len62
-rw-r--r--opentrack/shortcuts.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/opentrack/shortcuts.cpp b/opentrack/shortcuts.cpp
index 0d7f79b9..108b6b3b 100644
--- a/opentrack/shortcuts.cpp
+++ b/opentrack/shortcuts.cpp
@@ -68,6 +68,8 @@ void Shortcuts::receiver(Key &k)
continue;
if (k.keycode != k_->keycode)
continue;
+ if (!k.held)
+ continue;
if (!k_->should_process())
continue;
if (k_->alt && !k.alt) continue;