Skip to content

Commit f49ec2d

Browse files
authored
fix(hig): give Copy with Headers a default keyboard shortcut (#1490) (#1510)
Signed-off-by: Ngô Quốc Đạt <datlechin@gmail.com>
1 parent 92e134e commit f49ec2d

3 files changed

Lines changed: 3 additions & 1 deletion

File tree

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
3030

3131
### Fixed
3232

33+
- 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)
3334
- VoiceOver now reads the column name and current value for each field editor in the cell inspector. (#1490)
3435
- VoiceOver announces the active tab title when you switch between window tabs. (#1490)
3536
- Opening a query tab no longer pulls keyboard focus away from the sidebar or another control; the editor takes focus only when nothing else holds it. VoiceOver now labels the SQL editor and the Clear and Format buttons. (#1490)

TablePro/Models/UI/KeyboardShortcutModels.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -525,6 +525,7 @@ struct KeyboardSettings: Codable, Equatable {
525525
.cut: KeyCombo(key: "x", command: true),
526526
.copy: KeyCombo(key: "c", command: true),
527527
.copyRowsExplicit: KeyCombo(key: "c", command: true, shift: true),
528+
.copyWithHeaders: KeyCombo(key: "c", command: true, option: true),
528529
.copyAsJson: KeyCombo(key: "j", command: true, option: true),
529530
.paste: KeyCombo(key: "v", command: true),
530531
.delete: KeyCombo(key: "delete", command: true, isSpecialKey: true),

docs/features/keyboard-shortcuts.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,7 @@ TablePro is keyboard-driven. Most actions have shortcuts, and most menu shortcut
153153
| Copy (cell value if a cell is focused on a single row, otherwise row(s) TSV) | `Cmd+C` |
154154
| Copy Rows as TSV | `Cmd+Shift+C` |
155155
| Copy as JSON | `Cmd+Option+J` |
156-
| Copy with Headers | Available from Edit menu and context menu |
156+
| Copy with Headers | `Cmd+Option+C` |
157157

158158
## CSV Inspector
159159

0 commit comments

Comments
 (0)