streamdeck-api-request icon indicating copy to clipboard operation
streamdeck-api-request copied to clipboard

Request is only sent after button is released

Open vostrnad opened this issue 2 years ago • 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.

vostrnad avatar May 27 '23 11:05 vostrnad

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.

wiretail avatar Nov 11 '23 01:11 wiretail