Module: ol/events/condition
Return true if the event originates from a mouse device. Return true if no modifier key (alt-, shift- or platform-modifier-key) is pressed. Return true if the event originates from a digital pen. Return true if the target element is not editable, i.e. not a -, - or -element, false otherwise.
https://openlayers.org/en/latest/apidoc/module-ol_events_condition.html