keymapperorg / KeyMapper

**DEVELOPMENT STOPPED**.📱 An Android app that change what the buttons do on your devices!
http://docs.keymapper.club
GNU General Public License v3.0
944 stars 146 forks source link

Bug: Key Mapper only executes the oldest shortcut that it knows about from the app "HTTP Request Shortcuts" #1222

Open sudomain opened 1 month ago

sudomain commented 1 month ago

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

When selecting a shortcut, the HTTP requests app allows selecting "Default" or "Legacy" placement method: Screenshot_20240605-183513 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

  1. Install HTTP requests shortcuts app
  2. 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)
  3. Try to run the Button_R2 shortcut/action, either using the trigger or tapping on the action

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.