forked from len0rd/rockbox
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
This commit is contained in:
parent
8d0cd9f303
commit
9701954654
1 changed files with 5 additions and 2 deletions
|
@ -47,6 +47,9 @@
|
||||||
|
|
||||||
#if (CONFIG_KEYPAD == IRIVER_H100_PAD) || \
|
#if (CONFIG_KEYPAD == IRIVER_H100_PAD) || \
|
||||||
(CONFIG_KEYPAD == IRIVER_H300_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 */
|
#define KBD_MORSE_INPUT /* I-Rivers have a Morse input mode */
|
||||||
|
|
||||||
#elif CONFIG_KEYPAD == ONDIO_PAD /* restricted Ondio keypad */
|
#elif CONFIG_KEYPAD == ONDIO_PAD /* restricted Ondio keypad */
|
||||||
|
@ -929,7 +932,7 @@ int kbd_input(char* text, int buflen)
|
||||||
/* speak revised text */
|
/* speak revised text */
|
||||||
break;
|
break;
|
||||||
|
|
||||||
#ifndef KBD_MODES
|
#if !defined (KBD_MODES) || defined (KBD_CURSOR_KEYS)
|
||||||
case ACTION_KBD_BACKSPACE:
|
case ACTION_KBD_BACKSPACE:
|
||||||
if (hangul)
|
if (hangul)
|
||||||
{
|
{
|
||||||
|
@ -977,7 +980,7 @@ int kbd_input(char* text, int buflen)
|
||||||
kbd_spellchar(text[c]);
|
kbd_spellchar(text[c]);
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
#endif /* !KBD_MODES */
|
#endif /* !defined (KBD_MODES) || defined (KBD_CURSOR_KEYS) */
|
||||||
|
|
||||||
case BUTTON_NONE:
|
case BUTTON_NONE:
|
||||||
gui_syncstatusbar_draw(&statusbars, false);
|
gui_syncstatusbar_draw(&statusbars, false);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue