mirror of
https://github.com/pewdiepie-archdaemon/odysseus.git
synced 2026-10-06 06:52:20 +02:00
7 lines
223 B
JavaScript
7 lines
223 B
JavaScript
export function selectionModeForEvent(event, fallback = 'replace') {
|
|
if (event.shiftKey && event.altKey) return 'intersect';
|
|
if (event.shiftKey) return 'add';
|
|
if (event.altKey) return 'subtract';
|
|
return fallback;
|
|
}
|