fix(editor): preserve multi-cursor clicks on identifiers
This commit is contained in:
3 files changed
+33
-8
No files matched your search
@@ -3,6 +3,16 @@ export interface QueryEditorPointerEvent {
|
||||
button: number;
|
||||
}
|
||||
|
||||
export interface QueryEditorObjectNavigationModifierEvent {
|
||||
altKey: boolean;
|
||||
ctrlKey: boolean;
|
||||
metaKey: boolean;
|
||||
}
|
||||
|
||||
export function startsQueryEditorRectangularSelection(event: QueryEditorPointerEvent): boolean {
|
||||
return event.altKey || event.button === 1;
|
||||
}
|
||||
|
||||
export function usesQueryEditorObjectNavigationModifier(event: QueryEditorObjectNavigationModifierEvent): boolean {
|
||||
return !event.altKey && (event.metaKey || event.ctrlKey);
|
||||
}
|
||||
Reference in new issue
Block a user