isStandardMouseEvent function

bool isStandardMouseEvent(
  1. MouseEvent event
)

Whether the MouseEvent was initiated with the primary mouse button and no modifier keys were used.

Implementation

bool isStandardMouseEvent(MouseEvent event) =>
    event.button == 0 &&
    !event.altKey &&
    !event.ctrlKey &&
    !event.metaKey &&
    !event.shiftKey;