diff options
author | William Wilgus <me.theuser@yahoo.com> | 2022-12-31 11:00:15 -0500 |
---|---|---|
committer | William Wilgus <me.theuser@yahoo.com> | 2022-12-31 11:01:46 -0500 |
commit | 85410589d14ba44f05d8d6317bd40ee56e08b163 (patch) | |
tree | 4e96d91a984ae081b2bd4d6ece63ecbf1ddb9cfc | |
parent | 484a79fcc0bb762acc1c3a502b237a68588ab4ab (diff) | |
download | rockbox-85410589d1.tar.gz rockbox-85410589d1.zip |
Revert "keyremap allow remaps to work when player is locked"
This reverts commit ea7b80dab0ee9f087c1db76975d9490db8b189d1.
Reason for revert: Adding Context flags to the keyremap plugin
Change-Id: I056ca2c0ee27e6cc7946166cf52461efda0ee1fb
-rw-r--r-- | apps/action.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/apps/action.c b/apps/action.c index 9ea46dc095..e8c3e8675e 100644 --- a/apps/action.c +++ b/apps/action.c @@ -594,6 +594,13 @@ static inline void action_code_lookup(action_last_t *last, action_cur_t *cur) int context = cur->context; cur->is_prebutton = false; +#ifdef HAVE_LOCKED_ACTIONS + /* This only applies to the first context, to allow locked contexts to + * specify a fall through to their non-locked version */ + if (is_keys_locked()) + context |= CONTEXT_LOCKED; +#endif + #ifndef DISABLE_ACTION_REMAP /* attempt to look up the button in user supplied remap */ if(last->key_remap && (context & CONTEXT_PLUGIN) == 0) @@ -625,13 +632,6 @@ static inline void action_code_lookup(action_last_t *last, action_cur_t *cur) } #endif -#ifdef HAVE_LOCKED_ACTIONS - /* This only applies to the first context, to allow locked contexts to - * specify a fall through to their non-locked version */ - if (is_keys_locked()) - context |= CONTEXT_LOCKED; -#endif - i = 0; action = ACTION_NONE; /* attempt to look up the button in the in-built keymaps */ |