diff options
-rw-r--r-- | apps/wps.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/apps/wps.c b/apps/wps.c index 4348819799..72c4b5c993 100644 --- a/apps/wps.c +++ b/apps/wps.c | |||
@@ -391,7 +391,7 @@ int wps_show(void) | |||
391 | int old_release_mask; | 391 | int old_release_mask; |
392 | int button; | 392 | int button; |
393 | int ff_rewind_count = 0; | 393 | int ff_rewind_count = 0; |
394 | bool ignore_keyup; | 394 | bool ignore_keyup = true; |
395 | 395 | ||
396 | old_release_mask = button_set_release(RELEASE_MASK); | 396 | old_release_mask = button_set_release(RELEASE_MASK); |
397 | 397 | ||
@@ -403,7 +403,6 @@ int wps_show(void) | |||
403 | #endif | 403 | #endif |
404 | 404 | ||
405 | ff_rewind = false; | 405 | ff_rewind = false; |
406 | ignore_keyup = true; | ||
407 | 406 | ||
408 | if(mpeg_is_playing()) | 407 | if(mpeg_is_playing()) |
409 | { | 408 | { |
@@ -415,11 +414,12 @@ int wps_show(void) | |||
415 | { | 414 | { |
416 | button = button_get_w_tmo(HZ/5); | 415 | button = button_get_w_tmo(HZ/5); |
417 | 416 | ||
418 | /* Discard stray key-up events */ | 417 | /* discard first event if it's a button release */ |
419 | if(ignore_keyup && (button & BUTTON_REL)) | 418 | if (button && ignore_keyup) |
420 | { | 419 | { |
421 | ignore_keyup = false; | 420 | ignore_keyup = false; |
422 | continue; | 421 | if (button & BUTTON_REL) |
422 | continue; | ||
423 | } | 423 | } |
424 | 424 | ||
425 | if(mpeg_has_changed_track()) | 425 | if(mpeg_has_changed_track()) |