react-hotkeys v2.0.0-pre2 Release Notes

Release Date: 2019-01-13 // almost 3 years ago
  • Potentially breaking changes

    • โœ‚ Removed upper limit on React peer dependency version.

    ๐Ÿ†• New features

    Can now generate an application key map

    It's now possible to generate a list of hotkeys for the application to display to the user.

    ๐Ÿ†• New innerRef prop

    Thanks to #124, <ReactHotkeys /> now accepts an innerRef prop:

    class MyComponent extends Component { componentDidMount() { this.\_container.focus(); } render() { return ( \<HotKeys innerRef={ (c) =\> this.\_container = c } \> My focusable content \</div\> ) } }