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 25f559f..856bc08 100644
--- a/apps/action.c
+++ b/apps/action.c
@@ -77,6 +77,10 @@ static inline int do_button_check(const struct button_mapping *items,
{
if (items[i].button_code == button)
{
+ /*
+ CAVEAT: This will allways return the action without pre_button_code if it has a
+ lower index in the list.
+ */
if ((items[i].pre_button_code == BUTTON_NONE)
|| (items[i].pre_button_code == last_button))
{