Skip to content

v2.0.0-pre8

Pre-release
Pre-release
Compare
Choose a tag to compare
@greena13 greena13 released this 17 Jun 07:30
· 138 commits to master since this release

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'    
  }
})

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)