summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--opentrack/shortcuts.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/opentrack/shortcuts.h b/opentrack/shortcuts.h
index 576b5384..63d91829 100644
--- a/opentrack/shortcuts.h
+++ b/opentrack/shortcuts.h
@@ -54,6 +54,8 @@ public:
bool should_process()
{
+ if (keycode == 0)
+ return false;
bool ret = timer.elapsed_ms() > 100;
timer.start();
return ret;