mjbnz/streamdeck-api-request

Request is only sent after button is released

Opened this issue · 1 comments

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.

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

  1. Open in a text editor:
  • (win) "%appdata%\Elgato\StreamDeck\Plugins\com.github.mjbnz.sd-api-request.sdPlugin\app.js"
  • (mac) "~/Library/Application Support/com.elgato.StreamDeck/Plugins/com.github.mjbnz.sd-api-request.sdPlugin\app.js"
  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.