From 4f6375ca175b34623e5c737cd36dbd62aad58fd2 Mon Sep 17 00:00:00 2001 From: Jens Arnold Date: Fri, 22 Jul 2005 12:42:50 +0000 Subject: [PATCH] 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 --- apps/recorder/keyboard.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/apps/recorder/keyboard.c b/apps/recorder/keyboard.c index 8c4d628ba2..832bb995ba 100644 --- a/apps/recorder/keyboard.c +++ b/apps/recorder/keyboard.c @@ -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;