diff options
author | Michael Sevakis <jethead71@rockbox.org> | 2007-03-05 02:07:17 +0000 |
---|---|---|
committer | Michael Sevakis <jethead71@rockbox.org> | 2007-03-05 02:07:17 +0000 |
commit | 9701954654cbde32e45b148f033e726c25e7dfbe (patch) | |
tree | 10a2151a1af03617ea7f5d8f2a896270d28c43e8 /apps | |
parent | 8d0cd9f303e9f0071836f7298476d6791522c200 (diff) | |
download | rockbox-9701954654cbde32e45b148f033e726c25e7dfbe.tar.gz rockbox-9701954654cbde32e45b148f033e726c25e7dfbe.zip |
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
Diffstat (limited to 'apps')
-rw-r--r-- | apps/recorder/keyboard.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/apps/recorder/keyboard.c b/apps/recorder/keyboard.c index 30523253b4..fe8686db8c 100644 --- a/apps/recorder/keyboard.c +++ b/apps/recorder/keyboard.c | |||
@@ -47,6 +47,9 @@ | |||
47 | 47 | ||
48 | #if (CONFIG_KEYPAD == IRIVER_H100_PAD) || \ | 48 | #if (CONFIG_KEYPAD == IRIVER_H100_PAD) || \ |
49 | (CONFIG_KEYPAD == IRIVER_H300_PAD) | 49 | (CONFIG_KEYPAD == IRIVER_H300_PAD) |
50 | #define KBD_CURSOR_KEYS /* certain key combos move the cursor even if not | ||
51 | in line edit mode */ | ||
52 | #define KBD_MODES /* I-Rivers can use picker, line edit and cursor keys */ | ||
50 | #define KBD_MORSE_INPUT /* I-Rivers have a Morse input mode */ | 53 | #define KBD_MORSE_INPUT /* I-Rivers have a Morse input mode */ |
51 | 54 | ||
52 | #elif CONFIG_KEYPAD == ONDIO_PAD /* restricted Ondio keypad */ | 55 | #elif CONFIG_KEYPAD == ONDIO_PAD /* restricted Ondio keypad */ |
@@ -929,7 +932,7 @@ int kbd_input(char* text, int buflen) | |||
929 | /* speak revised text */ | 932 | /* speak revised text */ |
930 | break; | 933 | break; |
931 | 934 | ||
932 | #ifndef KBD_MODES | 935 | #if !defined (KBD_MODES) || defined (KBD_CURSOR_KEYS) |
933 | case ACTION_KBD_BACKSPACE: | 936 | case ACTION_KBD_BACKSPACE: |
934 | if (hangul) | 937 | if (hangul) |
935 | { | 938 | { |
@@ -977,7 +980,7 @@ int kbd_input(char* text, int buflen) | |||
977 | kbd_spellchar(text[c]); | 980 | kbd_spellchar(text[c]); |
978 | } | 981 | } |
979 | break; | 982 | break; |
980 | #endif /* !KBD_MODES */ | 983 | #endif /* !defined (KBD_MODES) || defined (KBD_CURSOR_KEYS) */ |
981 | 984 | ||
982 | case BUTTON_NONE: | 985 | case BUTTON_NONE: |
983 | gui_syncstatusbar_draw(&statusbars, false); | 986 | gui_syncstatusbar_draw(&statusbars, false); |