diff options
-rw-r--r-- | commands.c | 12 | ||||
-rw-r--r-- | menu.c | 12 | ||||
-rw-r--r-- | setup.c | 4 |
3 files changed, 6 insertions, 22 deletions
@@ -243,12 +243,10 @@ eOSState cCMDDir::ProcessKey(eKeys Key) { case csNone: mItem = (cMainMenuItem*)Get(Current()); - switch(Key) + switch(Key & ~k_Repeat) { case kUp: - case kUp|k_Repeat: case kDown: - case kDown|k_Repeat: cOsdMenu::ProcessKey(Key); SetHelp(); mItem = (cMainMenuItem*)Get(Current()); @@ -580,12 +578,10 @@ eOSState cCMDMove::ProcessKey(eKeys Key) cDirHandling *DirHand = NULL; cFileMoveThread *move = NULL; - switch(Key) + switch(Key & ~k_Repeat) { case kUp: - case kUp|k_Repeat: case kDown: - case kDown|k_Repeat: cOsdMenu::ProcessKey(Key); SetHelp(); mItem = (cMainMenuItem*)Get(Current()); @@ -795,12 +791,10 @@ eOSState cCMDImageRead::ProcessKey(eKeys Key) { if(!HasSubMenu()) { - switch(Key) + switch(Key & ~k_Repeat) { case kUp: - case kUp|k_Repeat: case kDown: - case kDown|k_Repeat: cOsdMenu::ProcessKey(Key); SetHelp(); return osContinue; @@ -556,16 +556,12 @@ eOSState cMainMenu::ProcessKey(eKeys Key) } break; default: - switch(Key) + switch(Key & ~k_Repeat) { case kUp: - case kUp|k_Repeat: case kDown: - case kDown|k_Repeat: case kRight: - case kRight|k_Repeat: case kLeft: - case kLeft|k_Repeat: return MenuMove(Key); break; case k1: @@ -602,12 +598,10 @@ eOSState cMainMenu::MenuMove(eKeys Key) if(DVDSwitchSetup.DisplayMode == 1) { - switch(Key) + switch(Key & ~k_Repeat) { case kDown: - case kDown|k_Repeat: case kUp: - case kUp|k_Repeat: state = cOsdMenu::ProcessKey(Key); if(Count() && Current() == FirstSelectable) @@ -619,7 +613,6 @@ eOSState cMainMenu::MenuMove(eKeys Key) } break; case kLeft: - case kLeft|k_Repeat: if(Count() && DVDSwitchSetup.JumpCatByKey) { @@ -685,7 +678,6 @@ eOSState cMainMenu::MenuMove(eKeys Key) } break; case kRight: - case kRight|k_Repeat: if(Count() && DVDSwitchSetup.JumpCatByKey) { @@ -340,7 +340,7 @@ eOSState cMenuSetupDVDSwitch::ProcessKey(eKeys Key) { const char *ItemText = Get(Current())->Text(); - switch(Key) + switch(Key & ~k_Repeat) { case kRight: case kLeft: @@ -406,9 +406,7 @@ eOSState cMenuSetupDVDSwitch::ProcessKey(eKeys Key) } break; case kUp: - case kUp|k_Repeat: case kDown: - case kDown|k_Repeat: state = cMenuSetupPage::ProcessKey(Key); ItemText = Get(Current())->Text(); |