summaryrefslogtreecommitdiff
path: root/menu-commands.c
diff options
context:
space:
mode:
Diffstat (limited to 'menu-commands.c')
-rw-r--r--menu-commands.c8
1 files changed, 2 insertions, 6 deletions
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 <anbr at users.berlios.de>
+ * (C) 2004-2011 Andreas Brachold <vdr07 at deltab.de>
*
* 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;