From 89e48d3f1b19b542cc365c72f853b0231497e0d5 Mon Sep 17 00:00:00 2001 From: Themaister Date: Sun, 13 Apr 2014 19:51:10 +0200 Subject: [PATCH] Only accept key releases. --- input/keyboard_line.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/input/keyboard_line.c b/input/keyboard_line.c index c5835a1291..845dfd05b6 100644 --- a/input/keyboard_line.c +++ b/input/keyboard_line.c @@ -134,8 +134,11 @@ void input_keyboard_event(bool down, unsigned code, uint32_t character, uint16_t if (deferred_wait_keys) { - input_keyboard_wait_keys_cancel(); - deferred_wait_keys = false; + if (!down) + { + input_keyboard_wait_keys_cancel(); + deferred_wait_keys = false; + } } else if (g_keyboard_press_cb) {