Skip to content

Keymap.matchModifiers method

Keymap › matchModifiers

Unofficial

Checks whether the currently-pressed modifiers exactly match the given compiled modifier string.

Signature:

matchModifiers(modifiers: string): boolean

Parameters:

Parameter Type Description
modifiers string The compiled, sorted, comma-joined modifier string to compare against.

Returns: booleanWhether the modifiers match.