getModifierSide method

  1. @override
KeyboardSide getModifierSide(
  1. ModifierKey key

Returns a KeyboardSide enum value that describes which side or sides of the given keyboard modifier key were pressed at the time of this event.


KeyboardSide getModifierSide(ModifierKey key) {
  // Neither GLFW nor X11 provide a distinction between left and right
  // modifiers, so defaults to KeyboardSide.all.
  return KeyboardSide.all;