diff options
author | Linus Nielsen Feltzing <linus@haxx.se> | 2003-11-04 12:36:55 +0000 |
---|---|---|
committer | Linus Nielsen Feltzing <linus@haxx.se> | 2003-11-04 12:36:55 +0000 |
commit | 6afd0a7a083fa470c62cc2189f30ae4c63c534f7 (patch) | |
tree | ed92d2809c84ab5838dd50ab300e67e979854fd1 /apps | |
parent | c70a750a0d0967efb651cf4a31b7fd46741a0db5 (diff) | |
download | rockbox-6afd0a7a083fa470c62cc2189f30ae4c63c534f7.tar.gz rockbox-6afd0a7a083fa470c62cc2189f30ae4c63c534f7.zip |
Now the keyboard entry screen updates the status bar
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@4012 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps')
-rw-r--r-- | apps/recorder/keyboard.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/apps/recorder/keyboard.c b/apps/recorder/keyboard.c index d8b3f40a45..9edf24694d 100644 --- a/apps/recorder/keyboard.c +++ b/apps/recorder/keyboard.c | |||
@@ -25,6 +25,7 @@ | |||
25 | #include <string.h> | 25 | #include <string.h> |
26 | #include "font.h" | 26 | #include "font.h" |
27 | #include "screens.h" | 27 | #include "screens.h" |
28 | #include "status.h" | ||
28 | 29 | ||
29 | #define KEYBOARD_LINES 4 | 30 | #define KEYBOARD_LINES 4 |
30 | #define KEYBOARD_PAGES 3 | 31 | #define KEYBOARD_PAGES 3 |
@@ -175,7 +176,7 @@ int kbd_input(char* text, int buflen) | |||
175 | lcd_invertrect(font_w * x, font_h * y, font_w, font_h); | 176 | lcd_invertrect(font_w * x, font_h * y, font_w, font_h); |
176 | lcd_update(); | 177 | lcd_update(); |
177 | 178 | ||
178 | switch ( button_get(true) ) { | 179 | switch ( button_get_w_tmo(HZ/2) ) { |
179 | 180 | ||
180 | case BUTTON_OFF: | 181 | case BUTTON_OFF: |
181 | /* abort */ | 182 | /* abort */ |
@@ -283,6 +284,10 @@ int kbd_input(char* text, int buflen) | |||
283 | usb_screen(); | 284 | usb_screen(); |
284 | lcd_setfont(FONT_SYSFIXED); | 285 | lcd_setfont(FONT_SYSFIXED); |
285 | break; | 286 | break; |
287 | |||
288 | case BUTTON_NONE: | ||
289 | status_draw(false); | ||
290 | break; | ||
286 | } | 291 | } |
287 | } | 292 | } |
288 | lcd_setfont(FONT_UI); | 293 | lcd_setfont(FONT_UI); |