isAltPressed property

bool get isAltPressed

True if the Alt key is currently being pressed.

Implementation

bool get isAltPressed =>
    _logicalKeys.contains(LogicalKeyboardKey.altLeft) ||
    _logicalKeys.contains(LogicalKeyboardKey.altRight);