diff options
Diffstat (limited to 'apps/recorder')
-rw-r--r-- | apps/recorder/keyboard.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/apps/recorder/keyboard.c b/apps/recorder/keyboard.c index 32933cdcfd..7eb798143e 100644 --- a/apps/recorder/keyboard.c +++ b/apps/recorder/keyboard.c | |||
@@ -297,6 +297,7 @@ int kbd_input(char* text, int buflen) | |||
297 | unsigned short ch; | 297 | unsigned short ch; |
298 | unsigned char *utf8; | 298 | unsigned char *utf8; |
299 | bool cur_blink = true; /* Cursor on/off flag */ | 299 | bool cur_blink = true; /* Cursor on/off flag */ |
300 | int ret; | ||
300 | #ifdef KBD_MORSE_INPUT | 301 | #ifdef KBD_MORSE_INPUT |
301 | bool morse_reading = false; | 302 | bool morse_reading = false; |
302 | unsigned char morse_code = 0; | 303 | unsigned char morse_code = 0; |
@@ -779,7 +780,7 @@ int kbd_input(char* text, int buflen) | |||
779 | global_settings.buttonbar=buttonbar_config; | 780 | global_settings.buttonbar=buttonbar_config; |
780 | #endif | 781 | #endif |
781 | viewportmanager_set_statusbar(oldbars); | 782 | viewportmanager_set_statusbar(oldbars); |
782 | return -1; | 783 | ret = -1; done = true; |
783 | break; | 784 | break; |
784 | 785 | ||
785 | case ACTION_KBD_PAGE_FLIP: | 786 | case ACTION_KBD_PAGE_FLIP: |
@@ -1000,6 +1001,7 @@ int kbd_input(char* text, int buflen) | |||
1000 | 1001 | ||
1001 | case ACTION_KBD_DONE: | 1002 | case ACTION_KBD_DONE: |
1002 | /* accepts what was entered and continues */ | 1003 | /* accepts what was entered and continues */ |
1004 | ret = 0; | ||
1003 | done = true; | 1005 | done = true; |
1004 | break; | 1006 | break; |
1005 | 1007 | ||
@@ -1249,5 +1251,7 @@ int kbd_input(char* text, int buflen) | |||
1249 | screens[l].setfont(FONT_UI); | 1251 | screens[l].setfont(FONT_UI); |
1250 | viewportmanager_set_statusbar(oldbars); | 1252 | viewportmanager_set_statusbar(oldbars); |
1251 | 1253 | ||
1252 | return 0; | 1254 | if (ret < 0) |
1255 | splash(HZ/2, ID2P(LANG_CANCEL)); | ||
1256 | return ret; | ||
1253 | } | 1257 | } |