From 6c9802b35f8586e4c2e50c26b25be328918bf0c1 Mon Sep 17 00:00:00 2001 From: Ngo Quoc Dat Date: Sat, 30 May 2026 14:02:09 +0700 Subject: [PATCH] fix(hig): give Copy with Headers a default keyboard shortcut (#1490) --- CHANGELOG.md | 1 + TablePro/Models/UI/KeyboardShortcutModels.swift | 1 + docs/features/keyboard-shortcuts.mdx | 2 +- 3 files changed, 3 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 3a74cc19e..031c0f07d 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -30,6 +30,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ### Fixed +- Copy with Headers now has a default keyboard shortcut (Cmd+Option+C), so it works and is discoverable from the keyboard instead of showing in the Edit menu with no key. (#1490) - Escape now dismisses search-based sheets and popovers (database switcher, quick switcher, column and connection pickers). Pressing Escape clears the search text first; a second Escape closes the sheet. (#1490) - Running `EXPLAIN` or `EXPLAIN ANALYZE` typed in the editor now opens the plan viewer instead of squashing the plan into one truncated grid cell. (#1480) - Filtering the data grid keeps you on the keyboard. Applying or clearing a filter returns focus to the grid so you can keep moving through cells, Return applies the filter, and Escape closes the filter panel and returns to the grid. (#1490) diff --git a/TablePro/Models/UI/KeyboardShortcutModels.swift b/TablePro/Models/UI/KeyboardShortcutModels.swift index bc19bf289..5b01ead29 100644 --- a/TablePro/Models/UI/KeyboardShortcutModels.swift +++ b/TablePro/Models/UI/KeyboardShortcutModels.swift @@ -525,6 +525,7 @@ struct KeyboardSettings: Codable, Equatable { .cut: KeyCombo(key: "x", command: true), .copy: KeyCombo(key: "c", command: true), .copyRowsExplicit: KeyCombo(key: "c", command: true, shift: true), + .copyWithHeaders: KeyCombo(key: "c", command: true, option: true), .copyAsJson: KeyCombo(key: "j", command: true, option: true), .paste: KeyCombo(key: "v", command: true), .delete: KeyCombo(key: "delete", command: true, isSpecialKey: true), diff --git a/docs/features/keyboard-shortcuts.mdx b/docs/features/keyboard-shortcuts.mdx index 990dcd3be..4097066ba 100644 --- a/docs/features/keyboard-shortcuts.mdx +++ b/docs/features/keyboard-shortcuts.mdx @@ -153,7 +153,7 @@ TablePro is keyboard-driven. Most actions have shortcuts, and most menu shortcut | Copy (cell value if a cell is focused on a single row, otherwise row(s) TSV) | `Cmd+C` | | Copy Rows as TSV | `Cmd+Shift+C` | | Copy as JSON | `Cmd+Option+J` | -| Copy with Headers | Available from Edit menu and context menu | +| Copy with Headers | `Cmd+Option+C` | ## CSV Inspector