From b58ea0f202ae450ebbceaacfeb0dd36769f88789 Mon Sep 17 00:00:00 2001 From: "Helmut K. C. Tessarek" Date: Thu, 11 Nov 2021 10:50:15 -0500 Subject: [PATCH] Desktop: Add shortcut for bulleted list (#5698) Ref: https://discourse.joplinapp.org/t/shortcut-for-lists/21646 --- packages/app-desktop/gui/menuCommandNames.ts | 1 + packages/lib/services/KeymapService.ts | 2 ++ 2 files changed, 3 insertions(+) diff --git a/packages/app-desktop/gui/menuCommandNames.ts b/packages/app-desktop/gui/menuCommandNames.ts index 18e55c00e..f962cdc4c 100644 --- a/packages/app-desktop/gui/menuCommandNames.ts +++ b/packages/app-desktop/gui/menuCommandNames.ts @@ -29,6 +29,7 @@ export default function() { 'textLink', 'textPaste', 'textSelectAll', + 'textBulletedList', 'toggleExternalEditing', 'toggleLayoutMoveMode', 'toggleNoteList', diff --git a/packages/lib/services/KeymapService.ts b/packages/lib/services/KeymapService.ts index 713e6425c..c5f89f668 100644 --- a/packages/lib/services/KeymapService.ts +++ b/packages/lib/services/KeymapService.ts @@ -28,6 +28,7 @@ const defaultKeymapItems = { { accelerator: 'Cmd+I', command: 'textItalic' }, { accelerator: 'Cmd+K', command: 'textLink' }, { accelerator: 'Cmd+`', command: 'textCode' }, + { accelerator: 'Option+Cmd+-', command: 'textBulletedList' }, { accelerator: 'Shift+Cmd+T', command: 'insertDateTime' }, { accelerator: 'Shift+Cmd+F', command: 'focusSearch' }, { accelerator: 'Cmd+F', command: 'showLocalSearch' }, @@ -68,6 +69,7 @@ const defaultKeymapItems = { { accelerator: 'Ctrl+I', command: 'textItalic' }, { accelerator: 'Ctrl+K', command: 'textLink' }, { accelerator: 'Ctrl+`', command: 'textCode' }, + { accelerator: 'Ctrl+Alt+-', command: 'textBulletedList' }, { accelerator: 'Ctrl+Shift+T', command: 'insertDateTime' }, { accelerator: 'F6', command: 'focusSearch' }, { accelerator: 'Ctrl+F', command: 'showLocalSearch' },