Skip to main content
Luis3
April 25, 2024
Solved

Using Figma keybinds for Plugin-Development

  • April 25, 2024
  • 5 replies
  • 293 views

Is there a way to apply keybinds in Figma to functions in the plugin interface? I would like to create my own prefabricated elements that are supplemented with additional information when they are created, preferably with keybinds.

This topic has been closed for replies.
Best answer by Gleb

You can listen to keyboard events in the plugin UI when the UI is in focus (it gets unfocused when you click outside of the UI).

5 replies

Gleb
GlebAnswer
Power Member
April 25, 2024

You can listen to keyboard events in the plugin UI when the UI is in focus (it gets unfocused when you click outside of the UI).

Luis3
Luis3Author
April 25, 2024

Awesome! Thanks for the quick response.

Connor6
December 18, 2024

Hey @Gleb.
I’d like to listen the keyboard event when the UI is not in focus.
I’m building a plugin and I’d like to implement some keyboard shortcut for my plugin like copy selected frames with shortcut (Commnad + C).
Now, it only works when I focus the UI but I’d like it works even the UI is not in focus.
Is there anyway to implement this feature?
Looking forward to hearing from you soon.
Thanks.

Gleb
Power Member
December 19, 2024

No, this isn’t possible.

Gleb
Power Member
December 19, 2024

The best you can do is to create different menu items for launching different commands in your plugin and then assign shortcuts to them within your OS (e.g. using System Preferences on macOS or AHK on Win)