Vendicated / Vencord

The cutest Discord client mod
https://vencord.dev
GNU General Public License v3.0
9.02k stars 1.28k forks source link

GifPaste: add customization settings to modify behavior when shift is held #2745

Open iminlikewithyou opened 3 months ago

iminlikewithyou commented 3 months ago

this makes GifPaste have two selectable behaviors from the settings modal:

  1. insert the gif into the input box
  2. instantly send the gif

you can select between the two behaviors, and this PR adds another setting which handily allows you to use the alternate behavior when the shift key is held down.

in essence, if your behavior is set to "Insert link into the chatbox", you can now hold shift to instantly send a gif. (similar to skipping a modal)

conversely, if your behavior is set to "Instantly send", you can hold shift to put the link in the chatbox instead. you cannot disable the shift override setting when using this behavior, since that's akin to just disabling the plugin entirely