v2.0.0-pre8
Pre-release
Pre-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
SHOW_DIALOG: {
name: 'Display keyboard shortcuts',
sequence: 'shift+?',
action: 'keyup'
}
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
oronly
options ofObserveKeys
andIgnoreKeys
(#198)