react-hotkeys v2.0.0-pre8 Release Notes

Release Date: 2019-06-17 // almost 5 years ago
  • Potentially breaking changes

    • ๐Ÿ”ง Repeated keydown events that occur when a key is held down are now ignored by default (#177). If you want the old behaviour, you can use the ignoreRepeatedEventsWhenKeyHeldDown configuration option.

    ๐Ÿ†• New features

    • You can now specify name, description and groups for key maps #154 (More info)

      SHOW_DIALOG: { name: 'Display keyboard shortcuts', sequence: 'shift+?', action: 'keyup' }

    • You can now define custom key codes for WebOS and other environments (#156) (More info)

      import {configure} from 'react-hotkeys';configure({ customKeyCodes: { 10009: 'BackTV' } })

    • You can now set dynamic key maps at runtime (#158) (More info)

    ๐Ÿ› Bug fixes

    • Action handlers that use useState now work correctly (#182, #196)
    • ๐Ÿ›  Fix some key combinations involving cmd acting as if those keys were still pressed down after they've been released (#183)
    • ๐Ÿ›  Fix some keys being incorrectly declared as invalid when used with the except or only options of ObserveKeys and IgnoreKeys (#198)