message: Add options parameter to useHotkeys hook
diff: -import hotkeys, {HotkeysEvent} from 'hotkeys-js';
  +import hotkeys, { HotkeysEvent } from "hotkeys-js";
  import { useCallback, useEffect } from "react";
  type CallbackFn = (event: KeyboardEvent, handler: HotkeysEvent) => void;
  +type Options = {
  + filter?: typeof hotkeys.filter;
  +};
  -export function useHotkeys(keys: string, callback: CallbackFn, deps: any[] = []) {
  +export function useHotkeys(
  + keys: string,
  + callback: CallbackFn,
  + deps: any[] = [],
  + options: Options = {}
  +) {
  const memoisedCallback = useCallback(callback, deps);
  useEffect(() => {
  + if (options.filter) hotkeys.filter = options.filter;
  +
  hotkeys(keys, memoisedCallback);
  return () => hotkeys.unbind(keys, memoisedCallback);
  - }, [memoisedCallback]);
  + }, [memoisedCallback, options]);
  }
  