modifiersPressed property

Map<ModifierKey, KeyboardSide> modifiersPressed

Returns a map of modifier keys that were pressed at the time of this event, and the keyboard side or sides that the key was on.

Implementation

Map<ModifierKey, KeyboardSide> get modifiersPressed {
  final Map<ModifierKey, KeyboardSide> result = <ModifierKey, KeyboardSide>{};
  for (final ModifierKey key in ModifierKey.values) {
    if (isModifierPressed(key)) {
      result[key] = getModifierSide(key);
    }
  }
  return result;
}