matchesShortcut function

Module @runic-artifex/views in @runic-artifex/views 0.23.0

function matchesShortcut(event: ShortcutEvent, shortcut: string | Shortcut, options?: ShortcutOptions): boolean;

Whether a keydown event is the shortcut, with exactly its modifiers. Primary is the Command key on Apple platforms and Ctrl elsewhere. Events of an input method's composition never match.