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
oronly
options ofObserveKeys
andIgnoreKeys
(#198)
- ๐ง 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