keymapperorg / KeyMapper

An Android app that change what the buttons do on your devices!
http://docs.keymapper.club
GNU General Public License v3.0
1.24k stars 163 forks source link

Volume button combination not working. #1217

Open Nikhilsinha666 opened 6 months ago

Nikhilsinha666 commented 6 months ago

I am creating a task in a key mapper where I will press the big volume button simultaneously to open the camera, but it is not working. And if I am creating triggers in sequence like pressing the up button and then the down button, the task is being performed. But if I set a trigger for pressing both the up and down buttons at the same time, the task is not working, meaning the action is not being performed. Reply please🙏 `` Screenshot_20240512-202631

Imold commented 1 week ago

@Nikhilsinha666 can you try changing it to a Long press trigger? I've was able to reproduce this bug, and in my testing it only applied for Short press mappings.

I figured out a bit more about this bug, and my best guess is that it's related to Android's accessibility shortcuts. You can set an accessibility shortcut for "Volume up and down keys", but requires you to press and hold the Volume up and down keys for 3 seconds, I'm guessing this may be why [Vol up] + [Vol down] / Short press / At the same time doesn't work, but [Vol up] + [Vol down] / Long press / At the same time does. I haven't looked in to the code or anything, but if I am right about it then this may be an Android limitation, or at least not something fixable in a way that would be considered worth pursuing.