isShiftPressed property

bool get isShiftPressed

Returns true if a logical SHIFT modifier key is pressed, regardless of which side of the keyboard it is on.

Use isLogicalKeyPressed if you need to know which shift key was pressed.

Implementation

bool get isShiftPressed {
  return isLogicalKeyPressed(LogicalKeyboardKey.shiftLeft) || isLogicalKeyPressed(LogicalKeyboardKey.shiftRight);
}