Files
dbx/apps/desktop/src/lib/table/tableInfoColumnNavigation.ts
T

6 lines
270 B
TypeScript

type TableInfoTextSelection = Pick<Selection, "isCollapsed" | "toString">;
export function shouldNavigateFromTableInfoColumnClick(selection?: TableInfoTextSelection | null): boolean {
return !selection || selection.isCollapsed || selection.toString().length === 0;
}