Skip to main content

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