From 12ec7b0c1dce48bef11bffe8b26626c44f4fe2c2 Mon Sep 17 00:00:00 2001 From: "Helmut K. C. Tessarek" Date: Sun, 19 Sep 2021 06:32:58 -0400 Subject: [PATCH] macOS: Added Cmd+Backspace shortcut to delete line (#5478) --- .../gui/NoteEditor/NoteBody/CodeMirror/utils/useKeymap.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/packages/app-desktop/gui/NoteEditor/NoteBody/CodeMirror/utils/useKeymap.ts b/packages/app-desktop/gui/NoteEditor/NoteBody/CodeMirror/utils/useKeymap.ts index eb6f80a95..f65d7dadc 100644 --- a/packages/app-desktop/gui/NoteEditor/NoteBody/CodeMirror/utils/useKeymap.ts +++ b/packages/app-desktop/gui/NoteEditor/NoteBody/CodeMirror/utils/useKeymap.ts @@ -171,6 +171,7 @@ export default function useKeymap(CodeMirror: any) { 'Cmd-Right': 'goLineRightSmart', 'Alt-Backspace': 'delGroupBefore', 'Alt-Delete': 'delGroupAfter', + 'Cmd-Backspace': 'delWrappedLineLeft', 'fallthrough': 'basic', };