[nit] There is a tiny breaking change in the typescript api when going from version 3 to 4.

Author: tkreisCreated Jan 2, 2026Updated Jan 2, 2026

https://github.com/jaywcjlove/hotkeys-js/commit/9867d7c892e4ed0a5393b4f4599ea38c1ef4da67#diff-f2fe192fa328d8936d876c22b13504f6b724f79712e08aa9164711caca136827

The modifier keys are now optional, prev. there were just defined as boolean.

Before:

  shift: boolean;
  ctrl: boolean;
  alt: boolean;
  option: boolean;
  control: boolean;
  cmd: boolean;
  command: boolean;

vs now:

declare interface HotkeysInterface extends HotkeysAPI {
    (key: string, method: KeyHandler): void;
    (key: string, scope: string, method: KeyHandler): void;
    (key: string, option: HotkeysOptions, method: KeyHandler): void;
    shift?: boolean;
    ctrl?: boolean;
    alt?: boolean;
    option?: boolean;
    control?: boolean;
    cmd?: boolean;
    command?: boolean;
}

I'm guessing the old types were just wrong and this did just correct the mistake.