feat(grid): add clipboard shortcuts

This commit is contained in:
t8y2
2026-05-10 10:22:17 +08:00
parent 5a15d7a424
commit 8664cc5b48
5 changed files with 119 additions and 5 deletions
+1 -3
View File
@@ -68,9 +68,7 @@ function sqlValue(value: GridCellValue): string {
}
export function formatSelectionAsTsv(selection: SelectionData): string {
const header = selection.columns.join("\t");
const body = selection.rows.map((row) => row.map(displayValue).join("\t")).join("\n");
return [header, body].filter(Boolean).join("\n");
return selection.rows.map((row) => row.map(displayValue).join("\t")).join("\n");
}
export function formatSelectionAsCsv(selection: SelectionData): string {