Files
odysseus/static/js/editor/selection-modifiers.js
T

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;
}