furqanZafar / react-selectize

http://furqanzafar.github.io/react-selectize/
Apache License 2.0
703 stars 138 forks source link

Anyway to intercept keyboard shortcut events? #87

Open cheahkhing opened 8 years ago

cheahkhing commented 8 years ago

Hi, I would like to add certain keyboard shortcuts for the user, like Ctrl+A will highlight all currently selected values, and Ctrl+Z will restore previously deleted values, etc.

Do you think is it possible to support this interaction?

furqanZafar commented 8 years ago

This can be achieved by implementing the inputProps.onKeyDown method, but sadly this gets overridden by the default implementation ATM, will need to invoke custom onKeyDown implementations (from the default implementation) to make it work.