Migrate useHotkeys options and context from v4 to v5
Several options and context properties have been renamed in version 5 to improve clarity:
useHotkeys Options:
combinationKey(v4) $\rightarrow$splitKey(v5): Character that joins keys in a combination (default:+).splitKey(v4) $\rightarrow$delimiter(v5): Character that separates different hotkey combinations (default:,).
HotkeysProvider Context:
enabledScopes(v4) $\rightarrow$activeScopes(v5).
// v4
useHotkeys('ctrl+a, shift+b', callback, { combinationKey: '-', splitKey: ';' })
const { enabledScopes } = useHotkeysContext()
// v5
useHotkeys('ctrl+a, shift+b', callback, { splitKey: '-', delimiter: ';' })
const { activeScopes } = useHotkeysContext()