Prevent entering the menu when returning from a subroutine with MODE-repeat events still in the queue (e.g. from renaming a file) (Ondio)

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@5526 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Jens Arnold 2005-01-02 12:08:34 +00:00
parent 5bdac4875c
commit 98ccef267f
2 changed files with 5 additions and 0 deletions

View file

@ -1384,6 +1384,10 @@ static bool dirbrowse(const char *root, const int *dirfilter)
#endif
case TREE_MENU:
#ifdef TREE_MENU_PRE
if (lastbutton != TREE_MENU_PRE)
break;
#endif
if (*dirfilter < NUM_FILTER_MODES)
{
lcd_stop_scroll();

View file

@ -87,6 +87,7 @@
#define TREE_RUN (BUTTON_RIGHT | BUTTON_REL)
#define TREE_RUN_PRE BUTTON_RIGHT
#define TREE_MENU (BUTTON_MENU | BUTTON_REPEAT)
#define TREE_MENU_PRE BUTTON_MENU
#define TREE_WPS (BUTTON_MENU | BUTTON_REL)
#define TREE_WPS_PRE BUTTON_MENU
#define TREE_CONTEXT (BUTTON_RIGHT | BUTTON_REPEAT)