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',