v2.0.0-pre4
Pre-release
Pre-release
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
<ObserveKeys only={'Escape'}>
<input
autoFocus
onChange={({target: {value}}) => this.setState({ filter: value })}
value={filter}
placeholder='Filter'
/>
</ObserveKeys>