Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

How do you detect Studio shortcut keys before they are consumed (For Plugins)?

Asked by 5 years ago

I am trying to detect if a player pressed a key combo such as 'Ctrl-C' or 'Ctrl-V', however I have been unable to do so since the Studio shortcuts consume the key press before anything can detect it.

I have tried:

  1. UserInputService - InputBegan
  2. ContextActionService - Bind function to KeyCode with 'High' priority.
  3. Mouse (Plugin) - KeyDown
  4. CreatePluginAction - This works, however I can't figure out how to set the action within the script, and it seems when I set the action it overrides the current Studio shortcuts. Ex. Binding the keys to 'Ctrl-C' makes the Copy shortcut not work.

Does anyone have any idea how to do this?

Answer this question