v2.0.0-pre2
Pre-release
Pre-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>
)
}
}