featherbit UI
    Preparing search index...

    Function matchesShortcut

    • True when a keyboard event matches a shortcut string.

      Bare single letters require no modifiers; "Ctrl+X" requires ctrl or meta.

      Parameters

      • e: KeyboardEvent
      • shortcut: string

      Returns boolean