isControlPressed property

bool get isControlPressed

True if the Ctrl key is currently being pressed.

Implementation

bool get isControlPressed =>
    _logicalKeys.contains(LogicalKeyboardKey.controlLeft) ||
    _logicalKeys.contains(LogicalKeyboardKey.controlRight);