isShiftKeyPressed function

bool isShiftKeyPressed()

Returns true if any shift key is pressed on a physical keyboard.

Implementation

bool isShiftKeyPressed() {
  final Set<LogicalKeyboardKey> keys = RawKeyboard.instance.keysPressed;
  return keys.contains(LogicalKeyboardKey.shiftLeft) ||
      keys.contains(LogicalKeyboardKey.shiftRight);
}