From bb94e79bd46c67f351df11106d551e0362d9326a Mon Sep 17 00:00:00 2001 From: jethead71 Date: Mon, 5 Mar 2007 02:07:17 +0000 Subject: [PATCH] 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 --- apps/recorder/keyboard.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/apps/recorder/keyboard.c b/apps/recorder/keyboard.c index 30523253b..fe8686db8 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); -- 2.11.4.GIT