isShiftPressed property

  1. @Deprecated('Use HardwareKeyboard.instance.isShiftPressed instead. ' 'This feature was deprecated after v3.18.0-2.0.pre.')
bool isShiftPressed

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

This method is deprecated and will be removed. Use HardwareKeyboard.isShiftPressed instead.

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

Implementation

@Deprecated(
  'Use HardwareKeyboard.instance.isShiftPressed instead. '
  'This feature was deprecated after v3.18.0-2.0.pre.',
)
bool get isShiftPressed {
  return isKeyPressed(LogicalKeyboardKey.shiftLeft) || isKeyPressed(LogicalKeyboardKey.shiftRight);
}