isPressOtherThanShiftAndPrintableAsciiKeys top-level property

bool get isPressOtherThanShiftAndPrintableAsciiKeys

Implementation

bool get isPressOtherThanShiftAndPrintableAsciiKeys {
  for (final element in HardwareKeyboard.instance.physicalKeysPressed) {
    if (element != PhysicalKeyboardKey.shiftLeft &&
        element != PhysicalKeyboardKey.shiftRight &&
        !printableAsciiKeys.containsKey(element)) {
      return true;
    }
  }
  return false;
}