summaryrefslogtreecommitdiff
path: root/apps/recorder/keyboard.c
diff options
context:
space:
mode:
Diffstat (limited to 'apps/recorder/keyboard.c')
-rw-r--r--apps/recorder/keyboard.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/apps/recorder/keyboard.c b/apps/recorder/keyboard.c
index 5c97f2bad6..3ce0208b7e 100644
--- a/apps/recorder/keyboard.c
+++ b/apps/recorder/keyboard.c
@@ -190,7 +190,7 @@ static void kbd_spellchar(unsigned short c)
190{ 190{
191 static char spell_char[2] = "\0\0"; /* store char to pass to talk_spell */ 191 static char spell_char[2] = "\0\0"; /* store char to pass to talk_spell */
192 192
193 if (global_settings.talk_menu && c < 128) /* voice UI? */ 193 if (talk_menus_enabled() && c < 128) /* voice UI? */
194 { 194 {
195 spell_char[0] = (char)c; 195 spell_char[0] = (char)c;
196 talk_spell(spell_char, false); 196 talk_spell(spell_char, false);
@@ -510,7 +510,7 @@ int kbd_input(char* text, int buflen)
510 /* Initial edit position is after last character */ 510 /* Initial edit position is after last character */
511 editpos = utf8length(text); 511 editpos = utf8length(text);
512 512
513 if (global_settings.talk_menu) /* voice UI? */ 513 if (talk_menus_enabled()) /* voice UI? */
514 talk_spell(text, true); /* spell initial text */ 514 talk_spell(text, true); /* spell initial text */
515 515
516 action_signalscreenchange(); 516 action_signalscreenchange();
@@ -1087,7 +1087,7 @@ int kbd_input(char* text, int buflen)
1087 kbd_inschar(text, buflen, &editpos, ch); 1087 kbd_inschar(text, buflen, &editpos, ch);
1088 } 1088 }
1089 1089
1090 if (global_settings.talk_menu) /* voice UI? */ 1090 if (talk_menus_enabled()) /* voice UI? */
1091 talk_spell(text, false); 1091 talk_spell(text, false);
1092 1092
1093 /* speak revised text */ 1093 /* speak revised text */
@@ -1116,7 +1116,7 @@ int kbd_input(char* text, int buflen)
1116 kbd_inschar(text, buflen, &editpos, ch); 1116 kbd_inschar(text, buflen, &editpos, ch);
1117 } 1117 }
1118 1118
1119 if (global_settings.talk_menu) /* voice UI? */ 1119 if (talk_menus_enabled()) /* voice UI? */
1120 talk_spell(text, false); /* speak revised text */ 1120 talk_spell(text, false); /* speak revised text */
1121 break; 1121 break;
1122 1122
@@ -1167,7 +1167,7 @@ int kbd_input(char* text, int buflen)
1167 param[l].hangul = false; 1167 param[l].hangul = false;
1168 kbd_inschar(text, buflen, &editpos, morse_alphabets[j]); 1168 kbd_inschar(text, buflen, &editpos, morse_alphabets[j]);
1169 1169
1170 if (global_settings.talk_menu) /* voice UI? */ 1170 if (talk_menus_enabled()) /* voice UI? */
1171 talk_spell(text, false); /* speak revised text */ 1171 talk_spell(text, false); /* speak revised text */
1172 } 1172 }
1173#endif /* KBD_MORSE_INPUT */ 1173#endif /* KBD_MORSE_INPUT */