[ ] create new branch. put issue number at start of name if not a very quick fix.
[ ] write tests. put issue number in comment
[ ] update documentation
[ ] merge and delete branch (don't squash because want commit history to see why I made changes)
Discord message link/email recipient
Describe the bug
I was hoping to use the shortcuts from app HTTP Requests Shortcuts in order to send HTTP requests for certain keys. There is a bug where if two or more of the shortcuts from this app are used as Key Mapper actions, only the older one will get executed. In the following example, the "Button_L1" shortcut will get executed for both mappings:
When selecting a shortcut, the HTTP requests app allows selecting "Default" or "Legacy" placement method:
If "Default" is used, then the keymapper action will give a toast with a message of Error opening this app shortcut. However, if Legacy is used, we encounter the overwriting bug I described above.
To Reproduce
Install HTTP requests shortcuts app
Create 2 or more shortcuts in that app. It doesn't matter if the request itself is valid because the wrong shortcut is opened and it shows the wrong shortcut name (Button_L1 in my example)
Try to run the Button_R2 shortcut/action, either using the trigger or tapping on the action
Expected behavior
The correct shortcut to get run, instead of the oldest one key mapper knows about from the app. Maybe the "Default" shortcut type can be supported? I think these are called "widgets" and can be renamed?
Screenshots
See above
Smartphone (please complete the following information):
Device: Pixel 2
Android version: Android 11
Additional context
Add any other context about the problem here.
Developer TODO (don't remove)
Discord message link/email recipient
Describe the bug I was hoping to use the shortcuts from app HTTP Requests Shortcuts in order to send HTTP requests for certain keys. There is a bug where if two or more of the shortcuts from this app are used as Key Mapper actions, only the older one will get executed. In the following example, the "Button_L1" shortcut will get executed for both mappings:![Screenshot_20240605-185919](https://github.com/keymapperorg/KeyMapper/assets/30786326/a609eaf0-3e20-43fa-a78a-d1b05fbd604d)
When selecting a shortcut, the HTTP requests app allows selecting "Default" or "Legacy" placement method:
If "Default" is used, then the keymapper action will give a toast with a message of
Error opening this app shortcut
. However, ifLegacy
is used, we encounter the overwriting bug I described above.To Reproduce
Upload a backup of your keymaps. Follow the guide here button_l1_r1_http_shortcuts_bug.zip
Expected behavior The correct shortcut to get run, instead of the oldest one key mapper knows about from the app. Maybe the "Default" shortcut type can be supported? I think these are called "widgets" and can be renamed?
Screenshots See above
Smartphone (please complete the following information):
Additional context Add any other context about the problem here.