Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
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
4
import
Location from
'../../core/Location'
;
5
6
function
isLeftClickEvent(event) {
7
return
event.button === 0;
8
}
9
10
function
isModifiedEvent(event) {
11
return
!!(event.metaKey || event.altKey || event.ctrlKey || event.shiftKey);
Callers
1
Link
Class · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected