Ah okay, thanks @Teodor
Then, where can I set up the trigger on keyboard pressed?
Just want to trigger a modal when a shortcut is pressed on a content page
@Teodor I’m probably doing it wrong… I’m trying to replicate this Using Shortcut Keys for Dynamic Events
I tried adding the event to another element (the modal itself or a div):
But it never triggers when I press the key.
I’ve tried:
- Different keys (both singular or combinations)
- Different actions (browser alert, show modal)
- Added the dynamic event to different elements (a simply div, the modal itself, a container)
Thank you for the help!