summaryrefslogtreecommitdiffstats
path: root/apps/tree.c
diff options
context:
space:
mode:
Diffstat (limited to 'apps/tree.c')
-rw-r--r--apps/tree.c10
1 files changed, 6 insertions, 4 deletions
diff --git a/apps/tree.c b/apps/tree.c
index 0dd03779a5..ac0e44c7f1 100644
--- a/apps/tree.c
+++ b/apps/tree.c
@@ -587,8 +587,9 @@ static bool dirbrowse(void)
switch ( button ) {
#ifdef TREE_ENTER
- case TREE_ENTER:
- case TREE_ENTER | BUTTON_REPEAT:
+ case TREE_ENTER | BUTTON_REL:
+ if (lastbutton != TREE_ENTER)
+ break;
#endif
#ifdef TREE_RC_RUN
case TREE_RC_RUN:
@@ -617,8 +618,9 @@ static bool dirbrowse(void)
restore = true;
break;
- case TREE_EXIT:
- case TREE_EXIT | BUTTON_REPEAT:
+ case TREE_EXIT | BUTTON_REL:
+ if (lastbutton != TREE_EXIT)
+ break;
#ifdef TREE_RC_EXIT
case TREE_RC_EXIT:
#endif