Skip to main content
Modular Documentation
Guides
Reference
Reference
/
@modular/sdk/editor
isExactShortcutMatch
function
Match a KeyboardEvent with its expected state
function isExactShortcutMatch(event: KeyboardEventModifiers, expectedKey: string, mask: KeyboardEventModifierMask): boolean
Import
import { isExactShortcutMatch } from '@modular/sdk/editor';
Notes
returns
true if the event matches