From 2a91de02abee737333cf650b32d13e5689443b76 Mon Sep 17 00:00:00 2001 From: Klaus Schmidinger Date: Sat, 3 Sep 2005 09:09:23 +0200 Subject: Repeat keys are now ignored when waiting for a keypress to cancel an operation --- interface.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'interface.c') diff --git a/interface.c b/interface.c index 33737433..4f18ddda 100644 --- a/interface.c +++ b/interface.c @@ -4,7 +4,7 @@ * See the main source file 'vdr.c' for copyright information and * how to reach the author. * - * $Id: interface.c 1.68 2004/11/01 14:23:28 kls Exp $ + * $Id: interface.c 1.69 2005/09/03 09:07:23 kls Exp $ */ #include "interface.h" @@ -56,7 +56,7 @@ eKeys cInterface::Wait(int Seconds, bool KeepChar) time_t timeout = time(NULL) + Seconds; for (;;) { Key = GetKey(); - if ((Key != kNone && (RAWKEY(Key) != kOk || RAWKEY(Key) == Key)) || time(NULL) > timeout || interrupted) + if (ISRAWKEY(Key) || time(NULL) > timeout || interrupted) break; } if (KeepChar && ISRAWKEY(Key)) -- cgit v1.2.3