isControlPressed property Null safety

bool isControlPressed

Returns true if a CTRL modifier key was pressed at the time of this event, regardless of which side of the keyboard it is on.

Use isModifierPressed if you need to know which control key was pressed.

Implementation

bool get isControlPressed => isModifierPressed(ModifierKey.controlModifier);