From 605d267622b8d2e69bc761f4f49442566164d843 Mon Sep 17 00:00:00 2001 From: Stanislaw Halik Date: Wed, 11 Nov 2015 14:35:13 +0100 Subject: joy: pass shortcut only if pressed, not depressed Issue: #118 Reported-by: @Len62 --- opentrack/shortcuts.cpp | 2 ++ 1 file changed, 2 insertions(+) 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; -- cgit v1.2.3