Skip to content

Keymap.hasModifier method

Keymap › hasModifier

Unofficial

Checks whether a modifier is currently pressed.

Signature:

hasModifier(modifier: Modifier): boolean

Parameters:

Parameter Type Description
modifier Modifier The modifier to check.

Returns: booleanWhether the modifier is currently pressed.