Represents keyboard modifier keys like SHIFT, CONTROL, ALT, or META (Command key on macOS). Used to simulate key combinations in interactions.

Definition

enum ModifierKey {
  ALT
  CONTROL
  CONTROL_OR_META
  META
  SHIFT
}

Values

ALT

The Alt key (Option key on macOS).

CONTROL

The Control key.

CONTROL_OR_META

Represents Control on Windows/Linux and Command (Meta) on macOS. Use this for cross-platform shortcuts like Ctrl+C/Cmd+C.

META

The Meta key (Command key on macOS, Windows key on Windows).

SHIFT

The Shift key.