How to get trigger from keyboard?

Oh my God… :joy: Thank you so much, it’s working now! I wish the error would have been more descriptive haha!

Small additional question: Do you happen to know whether it is possible to click on one of the modeBar buttons of a dcc.Graph object via a key press using JavaScript? For example to switch between the “Zoom” and “Pan” buttons.

Yes, it is possible.

You can right click on the modebar button you want to route to and inspect, once you have this, right click on the element in the DOM tree, copy the selector path then paste it into here:


If you use pattern-matching, it will be a little more difficult, you might also need to associate this with a specific id in the event of multiple charts.

1 Like

Awesome, thank you so much! Pattern-matching won’t be necessary luckily.

1 Like