diff options
Diffstat (limited to 'apps/player')
-rw-r--r-- | apps/player/keyboard.c | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/apps/player/keyboard.c b/apps/player/keyboard.c index 114b3fdf24..4f8a8b09e5 100644 --- a/apps/player/keyboard.c +++ b/apps/player/keyboard.c | |||
@@ -112,6 +112,7 @@ int kbd_input(char* text, int buflen) | |||
112 | unsigned char *utf8; | 112 | unsigned char *utf8; |
113 | 113 | ||
114 | int button, lastbutton = 0; | 114 | int button, lastbutton = 0; |
115 | int ret; | ||
115 | 116 | ||
116 | editpos = utf8length(text); | 117 | editpos = utf8length(text); |
117 | 118 | ||
@@ -185,7 +186,7 @@ int kbd_input(char* text, int buflen) | |||
185 | switch (button) | 186 | switch (button) |
186 | { | 187 | { |
187 | case BUTTON_STOP: /* abort */ | 188 | case BUTTON_STOP: /* abort */ |
188 | return -1; | 189 | ret = -1; done = true; |
189 | break; | 190 | break; |
190 | 191 | ||
191 | case BUTTON_MENU: /* page flip */ | 192 | case BUTTON_MENU: /* page flip */ |
@@ -245,7 +246,7 @@ int kbd_input(char* text, int buflen) | |||
245 | 246 | ||
246 | case BUTTON_PLAY | BUTTON_REPEAT: | 247 | case BUTTON_PLAY | BUTTON_REPEAT: |
247 | /* accepts what was entered and continues */ | 248 | /* accepts what was entered and continues */ |
248 | done = true; | 249 | ret = 0; done = true; |
249 | break; | 250 | break; |
250 | 251 | ||
251 | case BUTTON_PLAY | BUTTON_REL: | 252 | case BUTTON_PLAY | BUTTON_REL: |
@@ -304,6 +305,8 @@ int kbd_input(char* text, int buflen) | |||
304 | lastbutton = button; | 305 | lastbutton = button; |
305 | } | 306 | } |
306 | 307 | ||
307 | return 0; | 308 | if (ret < 0) |
309 | splash(HZ/2, ID2P(LANG_CANCEL)); | ||
310 | return ret; | ||
308 | } | 311 | } |
309 | 312 | ||