Implemented page up/down with 'Left'/'Right'

This commit is contained in:
Klaus Schmidinger
2001-02-03 14:35:28 +01:00
parent b79ccf2292
commit caa96c00ea
6 changed files with 54 additions and 8 deletions

12
menu.c
View File

@@ -4,7 +4,7 @@
* See the main source file 'vdr.c' for copyright information and
* how to reach the author.
*
* $Id: menu.c 1.58 2001/01/13 13:07:43 kls Exp $
* $Id: menu.c 1.59 2001/02/03 14:28:42 kls Exp $
*/
#include "menu.h"
@@ -1074,12 +1074,18 @@ eOSState cMenuTimers::Summary(void)
eOSState cMenuTimers::ProcessKey(eKeys Key)
{
// Must do these before calling cOsdMenu::ProcessKey() because cOsdMenu
// uses them to page up/down:
switch (Key) {
case kLeft:
case kRight: return Activate(Key == kRight);
default: break;
}
eOSState state = cOsdMenu::ProcessKey(Key);
if (state == osUnknown) {
switch (Key) {
case kLeft:
case kRight: return Activate(Key == kRight);
case kOk: return Summary();
case kRed: return Edit();
case kGreen: return New();