summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Sevakis <jethead71@rockbox.org>2007-03-05 02:07:17 +0000
committerMichael Sevakis <jethead71@rockbox.org>2007-03-05 02:07:17 +0000
commit9701954654cbde32e45b148f033e726c25e7dfbe (patch)
tree10a2151a1af03617ea7f5d8f2a896270d28c43e8
parent8d0cd9f303e9f0071836f7298476d6791522c200 (diff)
downloadrockbox-9701954654cbde32e45b148f033e726c25e7dfbe.zip
rockbox-9701954654cbde32e45b148f033e726c25e7dfbe.tar.gz
rockbox-9701954654cbde32e45b148f033e726c25e7dfbe.tar.bz2
rockbox-9701954654cbde32e45b148f033e726c25e7dfbe.tar.xz
iRiver: Enable line input mode on keyboard. The cursor key combos can still be used when in picker mode. Much easier for moving the cursor around by many characters.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@12617 a1c6a512-1295-4272-9138-f99709370657
-rw-r--r--apps/recorder/keyboard.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/apps/recorder/keyboard.c b/apps/recorder/keyboard.c
index 3052325..fe8686d 100644
--- a/apps/recorder/keyboard.c
+++ b/apps/recorder/keyboard.c
@@ -47,6 +47,9 @@
#if (CONFIG_KEYPAD == IRIVER_H100_PAD) || \
(CONFIG_KEYPAD == IRIVER_H300_PAD)
+#define KBD_CURSOR_KEYS /* certain key combos move the cursor even if not
+ in line edit mode */
+#define KBD_MODES /* I-Rivers can use picker, line edit and cursor keys */
#define KBD_MORSE_INPUT /* I-Rivers have a Morse input mode */
#elif CONFIG_KEYPAD == ONDIO_PAD /* restricted Ondio keypad */
@@ -929,7 +932,7 @@ int kbd_input(char* text, int buflen)
/* speak revised text */
break;
-#ifndef KBD_MODES
+#if !defined (KBD_MODES) || defined (KBD_CURSOR_KEYS)
case ACTION_KBD_BACKSPACE:
if (hangul)
{
@@ -977,7 +980,7 @@ int kbd_input(char* text, int buflen)
kbd_spellchar(text[c]);
}
break;
-#endif /* !KBD_MODES */
+#endif /* !defined (KBD_MODES) || defined (KBD_CURSOR_KEYS) */
case BUTTON_NONE:
gui_syncstatusbar_draw(&statusbars, false);