summaryrefslogtreecommitdiff
path: root/apps/action.c
diff options
context:
space:
mode:
Diffstat (limited to 'apps/action.c')
-rw-r--r--apps/action.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/apps/action.c b/apps/action.c
index 25f559f7bd..856bc0810c 100644
--- a/apps/action.c
+++ b/apps/action.c
@@ -77,6 +77,10 @@ static inline int do_button_check(const struct button_mapping *items,
77 { 77 {
78 if (items[i].button_code == button) 78 if (items[i].button_code == button)
79 { 79 {
80 /*
81 CAVEAT: This will allways return the action without pre_button_code if it has a
82 lower index in the list.
83 */
80 if ((items[i].pre_button_code == BUTTON_NONE) 84 if ((items[i].pre_button_code == BUTTON_NONE)
81 || (items[i].pre_button_code == last_button)) 85 || (items[i].pre_button_code == last_button))
82 { 86 {