diff options
Diffstat (limited to 'apps/tree.c')
-rw-r--r-- | apps/tree.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/apps/tree.c b/apps/tree.c index 57731cbb28..d3aaf294f6 100644 --- a/apps/tree.c +++ b/apps/tree.c | |||
@@ -324,7 +324,7 @@ bool dirbrowse(char *root) | |||
324 | lcd_update(); | 324 | lcd_update(); |
325 | 325 | ||
326 | button = button_get(true); | 326 | button = button_get(true); |
327 | switch ( button & ~BUTTON_REPEAT) { | 327 | switch ( button ) { |
328 | case TREE_EXIT: | 328 | case TREE_EXIT: |
329 | if ( play_mode == 1 ) | 329 | if ( play_mode == 1 ) |
330 | play_mode = 0; | 330 | play_mode = 0; |
@@ -410,6 +410,7 @@ bool dirbrowse(char *root) | |||
410 | break; | 410 | break; |
411 | 411 | ||
412 | case TREE_PREV: | 412 | case TREE_PREV: |
413 | case TREE_PREV | BUTTON_REPEAT: | ||
413 | if(filesindir) | 414 | if(filesindir) |
414 | { | 415 | { |
415 | if(dircursor) { | 416 | if(dircursor) { |
@@ -445,6 +446,7 @@ bool dirbrowse(char *root) | |||
445 | break; | 446 | break; |
446 | 447 | ||
447 | case TREE_NEXT: | 448 | case TREE_NEXT: |
449 | case TREE_NEXT | BUTTON_REPEAT: | ||
448 | if(filesindir) | 450 | if(filesindir) |
449 | { | 451 | { |
450 | if (dircursor + start + 1 < numentries ) { | 452 | if (dircursor + start + 1 < numentries ) { |