react-hotkeys v2.0.0-pre5 Release Notes

Release Date: 2019-04-18 // over 2 years ago
  • ๐Ÿ’ฅ Breaking changes

    • Delete and Backspace (and the variant del) 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

    ๐Ÿ›  Bugfixes

    • โž• Add the configure function to index.d.ts
    • โž• Add the withObserveKeys function to index.d.ts
    • ๐Ÿ›  Miscellaneous other fixes to index.d.ts (Thanks @shripadk and @Huvik!) #153 #163
    • ๐Ÿ›  Fix Github's ability to detect the correct license type