From 64edb052047c03a0b337e9cf8af9e77de9a2c6de Mon Sep 17 00:00:00 2001 From: Philip Molares Date: Wed, 2 Dec 2020 22:45:55 +0100 Subject: [PATCH] removed the f9 shortcut to sort all lines in a pad (#814) Signed-off-by: Philip Molares --- CHANGELOG.md | 1 + src/components/editor/editor-pane/key-map.ts | 8 +++++--- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index ffb5c2c53..5eccac150 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -31,6 +31,7 @@ SPDX-License-Identifier: CC-BY-SA-4.0 - Alternative anchor URL formats - Import HTML and convert to Markdown - Import content from a url +- F9 shortcut to sort lines ### Added diff --git a/src/components/editor/editor-pane/key-map.ts b/src/components/editor/editor-pane/key-map.ts index acf74e86c..e288f3cb4 100644 --- a/src/components/editor/editor-pane/key-map.ts +++ b/src/components/editor/editor-pane/key-map.ts @@ -24,7 +24,7 @@ const esc = (editor: Editor): void | typeof Pass => { return CodeMirror.Pass } } -const suppressSave = (): undefined => undefined +const suppressKey = (): undefined => undefined const tab = (editor: Editor) => { const tab = '\t' @@ -69,9 +69,10 @@ const tab = (editor: Editor) => { export const defaultKeyMap: KeyMap = !isMac ? { + F9: suppressKey, F10: f10, Esc: esc, - 'Ctrl-S': suppressSave, + 'Ctrl-S': suppressKey, Enter: 'newlineAndIndentContinueMarkdownList', Tab: tab, Home: 'goLineLeftSmart', @@ -83,9 +84,10 @@ export const defaultKeyMap: KeyMap = !isMac 'Ctrl-M': markSelection } : { + F9: suppressKey, F10: f10, Esc: esc, - 'Cmd-S': suppressSave, + 'Cmd-S': suppressKey, Enter: 'newlineAndIndentContinueMarkdownList', Tab: tab, 'Cmd-Left': 'goLineLeftSmart',