keydown subscribe event in ReactJS #1572
Unanswered
huypham1411
asked this question in
Q&A
Replies: 1 comment 1 reply
-
The library doesn't offer an API for keyboard events directly but you can simply use the native APIs provided by the browser. For example, our A11y guide has a section for adding keyboard press handlers: https://tradingview.github.io/lightweight-charts/tutorials/a11y/keyboard#adding-event-listener-for-keyboard-actions |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi, is there any way to subscribe to the key-down event in this library? For example, hold x key to trigger a specific function?
Beta Was this translation helpful? Give feedback.
All reactions