Skip to content

v2.0.0-pre2

Pre-release
Pre-release
Compare
Choose a tag to compare
@greena13 greena13 released this 13 Jan 14:18
· 244 commits to master since this release

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>
        )
    }

}