Skip to main content
Solved

Using Figma keybinds for Plugin-Development

  • April 25, 2024
  • 5 replies
  • 178 views

Luis3

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.

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).

View original

5 replies

Gleb
  • Power Member
  • 4706 replies
  • Answer
  • 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
  • Author
  • 4 replies
  • April 25, 2024

Awesome! Thanks for the quick response.


Connor6
  • 1 reply
  • 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
  • 4706 replies
  • December 19, 2024

No, this isn’t possible.


Gleb
  • Power Member
  • 4706 replies
  • 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)


Reply


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings