Keyboard Event Listener (on Collection page init)

default discord avatar
jacobeeney
8 months ago
1

Hello. I would like to give my CMS custom keyboard shortcuts. I assume this would be in a plugin.



I was wondering where, in the documentation, I could learn about running typescript on page init (such as a "listener" that waits for specific keyboard input).



Thank you!



Keyboard Event Listener (on Collection page init)



I found out that this is in the UI Field Custom Components:

https://payloadcms.com/docs/admin/components#field-component
  • default discord avatar
    tais.m
    2 months ago

    hey @jacobeeney did you find any examples of how to do this? I'm looking into adding keyboard shortcuts in the rich text editor, but from the documentation it seems I would have to reimplement the field to be able to extend it? 🤔

Open the post
Continue the discussion in Discord
Like what we're doing?
Star us on GitHub!

Star

Connect with the Payload Community on Discord

Discord

online

Can't find what you're looking for?

Get help straight from the Payload team with an Enterprise License.