summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJens Arnold <amiconn@rockbox.org>2005-07-22 12:42:50 +0000
committerJens Arnold <amiconn@rockbox.org>2005-07-22 12:42:50 +0000
commit4f6375ca175b34623e5c737cd36dbd62aad58fd2 (patch)
tree77f921239684718c89c23019dba28fd0d0417cdf
parent6d7ddc0a1b19f5b02d3482c1d599de6dbc5f6e38 (diff)
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
-rw-r--r--apps/recorder/keyboard.c7
1 files changed, 6 insertions, 1 deletions
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;