Keyboard Event Listener (on Collection page init)

default discord avatar
8 months ago

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:
  • default discord avatar
    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!


Connect with the Payload Community on Discord



Can't find what you're looking for?

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