From c354e0bd1f0842b56e9a913d302ee17ec1474db6 Mon Sep 17 00:00:00 2001 From: Roman Artiukhin Date: Wed, 2 Oct 2024 18:52:57 +0300 Subject: buttons: Don't set wait_for_release for release action Fixes ignored button press in yes/no screen. It depends on keymapping - this issue happens if action before wait_for_release is mapped on release action. Something like: { ACTION_STD_OK, BUTTON_SELECT|BUTTON_REL, BUTTON_SELECT } Change-Id: Idc6a57ef7a7daf75c21c9887e07fbefc814b6ae3 --- apps/action.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'apps/action.c') diff --git a/apps/action.c b/apps/action.c index 2286e9fe29..9d66dd131b 100644 --- a/apps/action.c +++ b/apps/action.c @@ -1217,7 +1217,8 @@ bool action_userabort(int timeout) void action_wait_for_release(void) { - action_last.wait_for_release = true; + if (!(action_last.button & BUTTON_REL)) + action_last.wait_for_release = true; } int get_action(int context, int timeout) -- cgit v1.2.3