Allow any non-play button to cancel auto-bookmark

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@4245 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Björn Stenberg 2004-01-16 00:21:43 +00:00
parent baa991a89d
commit c9a97763ef

View file

@ -255,17 +255,6 @@ bool bookmark_autobookmark(void)
key = button_get(true);
switch (key)
{
case BUTTON_DOWN | BUTTON_REL:
case BUTTON_ON | BUTTON_REL:
#ifdef HAVE_RECORDER_KEYPAD
case BUTTON_OFF | BUTTON_REL:
case BUTTON_RIGHT | BUTTON_REL:
case BUTTON_UP | BUTTON_REL:
#endif
case BUTTON_LEFT | BUTTON_REL:
done = true;
break;
case BUTTON_PLAY | BUTTON_REL:
if (global_settings.autocreatebookmark ==
BOOKMARK_RECENT_ONLY_ASK)
@ -281,6 +270,11 @@ bool bookmark_autobookmark(void)
status_set_param(true);
#endif
return false;
default:
if (key & BUTTON_REL)
done = true;
break;
}
}
return true;