From c92ba1c907240415fd7caab5b757bbdeb73efc17 Mon Sep 17 00:00:00 2001 From: anbr Date: Sun, 2 Oct 2011 22:11:16 +0200 Subject: Migrated from vdr-image.berlios.de to projects.vdr-developer.org --- menu-commands.c | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) (limited to 'menu-commands.c') diff --git a/menu-commands.c b/menu-commands.c index 97abe01..66b58f9 100644 --- a/menu-commands.c +++ b/menu-commands.c @@ -1,7 +1,7 @@ /* * Image plugin to VDR (C++) * - * (C) 2004-2008 Andreas Brachold + * (C) 2004-2011 Andreas Brachold * * This code is distributed under the terms and conditions of the * GNU GENERAL PUBLIC LICENSE. See the file COPYING for details. @@ -111,14 +111,10 @@ cImageMenuResult::cImageMenuResult(const char *szTitle, const char *szText) eOSState cImageMenuResult::ProcessKey(eKeys nKey) { - switch (nKey) { - case kUp|k_Repeat: + switch (nKey & ~k_Repeat) { case kUp: - case kDown|k_Repeat: case kDown: - case kLeft|k_Repeat: case kLeft: - case kRight|k_Repeat: case kRight: DisplayMenu()->Scroll(NORMALKEY(nKey) == kUp || NORMALKEY(nKey) == kLeft, NORMALKEY(nKey) == kLeft || NORMALKEY(nKey) == kRight); return osContinue; -- cgit v1.2.3