Skip to main content

isModifierMatch

function

Match a KeyboardEvent with its expected modifier state

function isModifierMatch(event: KeyboardEventModifiers, mask: KeyboardEventModifierMask): boolean

Import

import { isModifierMatch } from '@modular/sdk/editor';

Notes

returns
true if the event matches