#How to bind a keypress to open a modal

8 messages · Page 1 of 1 (latest)

tame gazelle
#

Hello im trying to find a way how to bind '+' on the numpad to open a modal when i click it, are there any tutorials or ng packages that let me do it?

tame gazelle
#

This binds it in a input

#

I need for this to work on a whole component

#

not only when the user selects an input

fiery lichen
#

But both way would work. You can bind to keydown/up events on any tag, not just inputs

#

well, any flag that is focusable