MCPcopy
hub / github.com/kriasoft/react-starter-kit / isLeftClickEvent

Function isLeftClickEvent

src/components/Link/Link.js:6–8  ·  view source on GitHub ↗
(event)

Source from the content-addressed store, hash-verified

4import Location from '../../core/Location';
5
6function isLeftClickEvent(event) {
7 return event.button === 0;
8}
9
10function isModifiedEvent(event) {
11 return !!(event.metaKey || event.altKey || event.ctrlKey || event.shiftKey);

Callers 1

LinkClass · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected