H1x0: Made the cursor movement button combos usable. Perhaps it would be better to use an Ondio-like mode mechanism instead, or move the accept function to a long press of SELECT.

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@7223 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Jens Arnold 2005-07-22 12:42:50 +00:00
parent 6d7ddc0a1b
commit 4f6375ca17

View file

@ -41,7 +41,8 @@
#define KBD_CURSOR_LEFT (BUTTON_ON | BUTTON_LEFT) #define KBD_CURSOR_LEFT (BUTTON_ON | BUTTON_LEFT)
#define KBD_SELECT BUTTON_SELECT #define KBD_SELECT BUTTON_SELECT
#define KBD_PAGE_FLIP BUTTON_MODE #define KBD_PAGE_FLIP BUTTON_MODE
#define KBD_DONE BUTTON_ON #define KBD_DONE_PRE BUTTON_ON
#define KBD_DONE (BUTTON_ON | BUTTON_REL)
#define KBD_ABORT BUTTON_OFF #define KBD_ABORT BUTTON_OFF
#define KBD_BACKSPACE BUTTON_REC #define KBD_BACKSPACE BUTTON_REC
@ -336,6 +337,10 @@ int kbd_input(char* text, int buflen)
case KBD_DONE: case KBD_DONE:
/* accepts what was entered and continues */ /* accepts what was entered and continues */
#ifdef KBD_DONE_PRE
if (lastbutton != KBD_DONE_PRE)
break;
#endif
done = true; done = true;
break; break;