diff options
Diffstat (limited to 'apps/recorder/keyboard.c')
-rw-r--r-- | apps/recorder/keyboard.c | 18 |
1 files changed, 12 insertions, 6 deletions
diff --git a/apps/recorder/keyboard.c b/apps/recorder/keyboard.c index a6c015aebf..0b51bc42c0 100644 --- a/apps/recorder/keyboard.c +++ b/apps/recorder/keyboard.c | |||
@@ -1226,13 +1226,19 @@ static void kbd_move_cursor(struct edit_state *state, int dir) | |||
1226 | { | 1226 | { |
1227 | state->changed = CHANGED_CURSOR; | 1227 | state->changed = CHANGED_CURSOR; |
1228 | } | 1228 | } |
1229 | else | 1229 | else if (state->editpos > state->len_utf8) |
1230 | { | 1230 | { |
1231 | state->editpos -= dir; | 1231 | state->editpos = 0; |
1232 | #if CONFIG_CODEC == SWCODEC | 1232 | #if CONFIG_CODEC == SWCODEC |
1233 | if (global_settings.talk_menu) | 1233 | if (global_settings.talk_menu) beep_play(1000, 150, 1500); |
1234 | beep_play(1000, 150, 1500); | 1234 | #endif |
1235 | #endif | 1235 | } |
1236 | else if (state->editpos < 0) | ||
1237 | { | ||
1238 | state->editpos = state->len_utf8; | ||
1239 | #if CONFIG_CODEC == SWCODEC | ||
1240 | if (global_settings.talk_menu) beep_play(1000, 150, 1500); | ||
1241 | #endif | ||
1236 | } | 1242 | } |
1237 | } | 1243 | } |
1238 | 1244 | ||