New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
KeyboardEvents not getting registered on legend itemContainers #3856
Comments
If you need to catch keyboard events you need to add them on a document, not legend item. Then trigger focus on specific element using its
|
@martynasma I want to make the legend items navigable using arrow keys, is there a config which will allow me to do this? Currently if we make the legend items focusable, we have to Tab through these items. |
At this time we do not plan on making this change I'm afraid. amCharts 4 is not getting any new features. We might consider arrow-based selection in amCharts 5 at some point. |
Bug description
KeyboardEvents not getting registered on legend itemContainers
I have registered the following events for legend items
Only the over pointer event is working and seems the only event to be registered.
The KeyboardEvents are not getting registered at all
On getting event listeners on legend item
only following events are found to be registered pointerout, blur, pointerover, pointerdown, touchstart, focus
https://codepen.io/itachi022/pen/LYjyJab
Checkout the above code pen
Environment (if applicable)
amcharts4
Additional context
We need to make the legend items navigable using arrow keys and need to listen to the keyboard events for this
The text was updated successfully, but these errors were encountered: