mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-10-14 02:27:39 -04:00
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:
parent
6d7ddc0a1b
commit
4f6375ca17
1 changed files with 6 additions and 1 deletions
|
@ -41,7 +41,8 @@
|
|||
#define KBD_CURSOR_LEFT (BUTTON_ON | BUTTON_LEFT)
|
||||
#define KBD_SELECT BUTTON_SELECT
|
||||
#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_BACKSPACE BUTTON_REC
|
||||
|
||||
|
@ -336,6 +337,10 @@ int kbd_input(char* text, int buflen)
|
|||
|
||||
case KBD_DONE:
|
||||
/* accepts what was entered and continues */
|
||||
#ifdef KBD_DONE_PRE
|
||||
if (lastbutton != KBD_DONE_PRE)
|
||||
break;
|
||||
#endif
|
||||
done = true;
|
||||
break;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue