react-hotkeys v2.0.0-pre4 Release Notes
Release Date: 2019-01-27 // about 5 years ago-
๐ฅ Breaking Changes
<HotKeysIgnore />
component has been renamed to<IgnoreKeys />
withHotKeysIgnore
has been renamed towithIgnoreKeys
- Standardised ignoring events - explained in What it actually means to ignore an event
๐ Bugfixes
- HotKeys not working for form fields/inputs #138
- ๐ Fix a number of issues with the TypeScript definitions in index.d.ts
- ๐ Fix Escape not being treated as a "special key" (non single char key name)
- ๐ Fix incorrect JSDoc
@private
annotations - ๐ Fix incorrect object JSDoc @typedefs
๐ New Features
cmd
is now an accepted alias forCommand
/Meta
key- โ Added a way of filtering key maps to the example app
โ Add an
<ObserveKeys />
component (and correspondingwithObserveKeys
method to avoid wrapper div) for defining white-list exceptions to the the defaultignoreEventsCondition
this.setState({ filter: value })} value={filter} placeholder='Filter' />
๐ Improvements