[Bugfix] FS#13857 - Keylock with USB bug (Fiio M3K)

1. Lock buttons
2. Lock indicator turns on
3. Plug USB
4. Lock indicator still turned on
5. Unplug USB
6. Lock indicator turns off but buttons still locked and if you
press lock button you see "Buttons locked" splash

pretty sure this is an issue with the touchpad on this device
probably applies to other touchscreen targets too

Change-Id: Ia0afee7d737f3a5a2755f53d176bd53dd57d87c5
This commit is contained in:
William Wilgus 2026-04-29 10:30:54 -04:00
parent 1068433d5b
commit 121c65b32a

View file

@ -1440,6 +1440,9 @@ bool is_keys_locked(void)
void set_selective_softlock_actions(bool selective, unsigned int mask)
{
action_last.keys_locked = false;
#if defined(HAVE_TOUCHPAD) || defined(HAVE_TOUCHSCREEN)
button_enable_touch(true);
#endif
if (selective)
{
action_last.softlock_mask = mask | SEL_ACTION_ENABLED;