isShiftPressed property

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

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

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

Use isModifierPressed 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 => isModifierPressed(ModifierKey.shiftModifier);