mirror of
https://github.com/VDR4Arch/vdr.git
synced 2023-10-10 13:36:52 +02:00
Implemented page up/down with 'Left'/'Right' (cont'd)
This commit is contained in:
parent
7f6a2a7a0c
commit
4041359317
6
menu.c
6
menu.c
@ -4,7 +4,7 @@
|
|||||||
* See the main source file 'vdr.c' for copyright information and
|
* See the main source file 'vdr.c' for copyright information and
|
||||||
* how to reach the author.
|
* how to reach the author.
|
||||||
*
|
*
|
||||||
* $Id: menu.c 1.60 2001/02/03 15:28:49 kls Exp $
|
* $Id: menu.c 1.61 2001/02/03 15:32:47 kls Exp $
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include "menu.h"
|
#include "menu.h"
|
||||||
@ -1076,16 +1076,20 @@ eOSState cMenuTimers::ProcessKey(eKeys Key)
|
|||||||
{
|
{
|
||||||
// Must do these before calling cOsdMenu::ProcessKey() because cOsdMenu
|
// Must do these before calling cOsdMenu::ProcessKey() because cOsdMenu
|
||||||
// uses them to page up/down:
|
// uses them to page up/down:
|
||||||
|
if (!HasSubMenu()) {
|
||||||
switch (Key) {
|
switch (Key) {
|
||||||
case kLeft:
|
case kLeft:
|
||||||
case kRight: return Activate(Key == kRight);
|
case kRight: return Activate(Key == kRight);
|
||||||
default: break;
|
default: break;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
eOSState state = cOsdMenu::ProcessKey(Key);
|
eOSState state = cOsdMenu::ProcessKey(Key);
|
||||||
|
|
||||||
if (state == osUnknown) {
|
if (state == osUnknown) {
|
||||||
switch (Key) {
|
switch (Key) {
|
||||||
|
case kLeft:
|
||||||
|
case kRight: return Activate(Key == kRight);
|
||||||
case kOk: return Summary();
|
case kOk: return Summary();
|
||||||
case kRed: return Edit();
|
case kRed: return Edit();
|
||||||
case kGreen: return New();
|
case kGreen: return New();
|
||||||
|
Loading…
Reference in New Issue
Block a user