mjbnz / streamdeck-api-request

StreamDeck API Request Plugin
Other
47 stars 13 forks source link

Request is only sent after button is released #12

Open vostrnad opened 1 year ago

vostrnad commented 1 year ago

When pressing the button with an API Request action, the request is not sent until after the button is released. I don't think there's any reason to wait for the release.

wiretail commented 1 year ago

FYI, it's pretty easy to change these however you like, and this one is simple:

  1. Open in a text editor:
  1. Change line 16 where it says "com.github.mjbnz.sd-api-request.keyUp" to "com.github.mjbnz.sd-api-request.keyDown".

Note: Unless you edit the rest of the file to match, leave "action.onKeyDown(jsonObj)" on the next line alone...it's just a name, and doesn't change how works.

  1. Quit the Streamdeck app and restart it. Should work on keyDown now.