mirror of
https://github.com/Growstuff/growstuff.git
synced 2026-09-25 15:34:55 -04:00
5 lines
249 B
JavaScript
5 lines
249 B
JavaScript
// A plain left click, as opposed to ctrl/cmd/shift/middle click, which should still open the link normally.
|
|
export function isPlainClick(event) {
|
|
return event.button === 0 && !(event.metaKey || event.ctrlKey || event.shiftKey || event.altKey);
|
|
}
|