Skip to content

v2.0.0-pre4

Pre-release
Pre-release
Compare
Choose a tag to compare
@greena13 greena13 released this 27 Jan 20:31
· 210 commits to master since this release

Breaking Changes

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 for Command/Meta key
  • Added a way of filtering key maps to the example app
  • Add an <ObserveKeys /> component (and corresponding withObserveKeys method to avoid wrapper div) for defining white-list exceptions to the the default ignoreEventsCondition
<ObserveKeys only={'Escape'}>
  <input
    autoFocus
    onChange={({target: {value}}) => this.setState({ filter: value })}
    value={filter}
    placeholder='Filter'
  />
</ObserveKeys>

Improvements

  • Improvements to the way the test suite is run #135 #139 #142
  • Readme improvements #139
  • Standardise and improve logging statements
  • Fix various minor typos and static analysis suggestions
  • Remove internal concepts no longer used