Skip to content

Commit f232815

Browse files
authored
Update keyboard shortcuts' order and descriptions (#1847)
## Context We generate Help Center (grist-help) documentation of keyboard shortcuts from this file. Over time, some shortcuts were reworded or rearranged in grist-help, but not in this file. Others needed minor edits. PR in `grist-help` generated from these changes is here: gristlabs/grist-help#552, and includes a preview of the result: https://deploy-preview-552--grist-help-preview.netlify.app/keyboard-shortcuts/ ## Has this been tested? - [ ] 👍 yes, I added tests to the test suite - [ ] 💭 no, because this PR is a draft and still needs work - [x] 🙅 no, because this is not relevant here - [ ] 🙋 no, because I need help <!-- Detail how we can help you --> ## Screenshots / Screencasts In-app shortcuts are generated as usual: <img width="1370" height="690" alt="Screenshot 2025-09-18 at 17 19 58" src="https://github.com/user-attachments/assets/cc31b200-c56d-41f3-9f30-3d2fa3364663" />
1 parent d97aa25 commit f232815

File tree

1 file changed

+20
-15
lines changed

1 file changed

+20
-15
lines changed

app/client/components/commandList.ts

Lines changed: 20 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,7 @@ export type CommandName =
7373
| 'editLabel'
7474
| 'editLayout'
7575
| 'historyPrevious'
76+
| 'toggleCheckbox'
7677
| 'historyNext'
7778
| 'makeFormula'
7879
| 'unmakeFormula'
@@ -281,11 +282,6 @@ export const groups: CommendGroupDef[] = [{
281282
keys: [],
282283
desc: 'Activate assistant',
283284
},
284-
{
285-
name: 'viewAsCard',
286-
keys: ['Space'],
287-
desc: 'Show the record card widget of the selected record',
288-
},
289285
{
290286
name: 'showPopup',
291287
keys:[],
@@ -394,6 +390,10 @@ export const groups: CommendGroupDef[] = [{
394390
keys: ['Mod+Alt+o'],
395391
desc: 'Toggle creator panel keyboard focus',
396392
alwaysOn: true,
393+
}, {
394+
name: 'viewAsCard',
395+
keys: ['Space'],
396+
desc: 'Show the record card widget of the selected record',
397397
}
398398
],
399399
}, {
@@ -456,6 +456,11 @@ export const groups: CommendGroupDef[] = [{
456456
name: 'fieldEditSave',
457457
keys: ['Enter'],
458458
desc: 'Finish editing a cell, saving the value'
459+
}, {
460+
// This only gets its own command so it can be listed as separate keyboard shortcut.
461+
name: 'toggleCheckbox',
462+
keys: ['Enter'],
463+
desc: 'Toggle the currently selected checkbox or switch cell'
459464
}, {
460465
name: 'detachEditor',
461466
keys: [],
@@ -550,7 +555,7 @@ export const groups: CommendGroupDef[] = [{
550555
}, {
551556
name: 'openDiscussion',
552557
keys: ['Mod+Alt+M'],
553-
desc: 'Comment',
558+
desc: 'Open comment thread',
554559
}
555560
],
556561
}, {
@@ -564,10 +569,14 @@ export const groups: CommendGroupDef[] = [{
564569
name: 'insertRecordAfter',
565570
keys: ['Mod+Enter'],
566571
desc: 'Insert a new record, after the currently selected one in an unsorted table',
572+
}, {
573+
name: 'duplicateRows',
574+
keys: ['Mod+Shift+d'],
575+
desc: 'Duplicate the currently selected record(s)',
567576
}, {
568577
name: 'deleteRecords',
569-
keys: ['Mod+Del', 'Mod+Backspace'],
570-
desc: 'Delete the currently selected record'
578+
keys: ['Mod+Backspace', 'Mod+Del'],
579+
desc: 'Delete the currently selected record(s)'
571580
}, {
572581
name: 'insertFieldBefore',
573582
keys: ['Alt+Shift+='],
@@ -579,19 +588,19 @@ export const groups: CommendGroupDef[] = [{
579588
}, {
580589
name: 'makeHeadersFromRow',
581590
keys: ['Mod+Shift+H'],
582-
desc: 'Use currently selected line as table headers'
591+
desc: 'Use the currently selected row as table headers'
583592
}, {
584593
name: 'renameField',
585594
keys: ['Ctrl+m'],
586595
desc: 'Rename the currently selected column'
587596
}, {
588597
name: 'hideFields',
589598
keys: ['Alt+Shift+-'],
590-
desc: 'Hide currently selected columns'
599+
desc: 'Hide the currently selected columns'
591600
}, {
592601
name: 'hideCardFields',
593602
keys: [],
594-
desc: 'Hide currently selected fields'
603+
desc: 'Hide the currently selected fields'
595604
}, {
596605
name: 'toggleFreeze',
597606
keys: [],
@@ -632,10 +641,6 @@ export const groups: CommendGroupDef[] = [{
632641
name: 'deleteCollapsedSection',
633642
keys: [],
634643
desc: 'Delete collapsed viewsection'
635-
}, {
636-
name: 'duplicateRows',
637-
keys: ['Mod+Shift+d'],
638-
desc: 'Duplicate selected rows'
639644
}, {
640645
name: 'showColumns',
641646
keys: [],

0 commit comments

Comments
 (0)