Files
dbx/apps/desktop/src/lib/editor/queryEditorPointerSelection.ts
T

9 lines
227 B
TypeScript

export interface QueryEditorPointerEvent {
altKey: boolean;
button: number;
}
export function startsQueryEditorRectangularSelection(event: QueryEditorPointerEvent): boolean {
return event.altKey || event.button === 1;
}