v2.0.0-pre5
Pre-release
Pre-release
Breaking changes
Delete
andBackspace
(and the variantdel
) are no longer treated as aliases for one another. You will need to bind handlers to both, if you want to maintain backwards compatibility. #145, #159
Bugfixes (that may be breaking changes if you depended on them)
- When resetting key history, the mapping of key aliases for the keys that had already been pressed was being lost. This has now been fixed.
- When the window loses focus, all keys that are currently pressed down are automatically released. This resolves the issue people were experiencing where React Hotkeys was prematurely triggering handlers for key combinations that caused the window to lose focus (e.g. displaying an alert), after that handler had been already called once #143