From 28deb29d72809b009b83dd8365fbae3043684f14 Mon Sep 17 00:00:00 2001 From: Stanislaw Halik Date: Fri, 16 Oct 2015 19:06:59 +0200 Subject: win32-shortcuts: drop null keycode --- opentrack/shortcuts.h | 2 ++ 1 file changed, 2 insertions(+) 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; -- cgit v1.2.3