1
0
mirror of https://github.com/laurent22/joplin.git synced 2025-01-11 18:24:43 +02:00

Desktop: Resolves #4257: Add extra macOS keys (#4259)

This commit is contained in:
Caleb John 2021-01-02 08:12:29 -07:00 committed by GitHub
parent 740aba90ea
commit fdfbb84d37
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -145,7 +145,7 @@ export default function useKeymap(CodeMirror: any) {
};
if (shim.isMac()) {
CodeMirror.keyMap.default = {
// MacOS
// macOS
'Shift-Cmd-Z': 'redo',
'Cmd-Y': 'redo',
'Cmd-End': 'goDocEnd',
@ -153,10 +153,12 @@ export default function useKeymap(CodeMirror: any) {
'Cmd-Home': 'goDocStart',
'Cmd-Up': 'goDocStart',
'Ctrl-D': 'delCharAfter',
'Cmd-Left': 'goGroupLeft',
'Cmd-Right': 'goGroupRight',
'Alt-Left': 'goGroupLeft',
'Alt-Right': 'goGroupRight',
'Ctrl-A': 'goLineStart',
'Ctrl-E': 'goLineEnd',
'Cmd-Left': 'goLineLeftSmart',
'Cmd-Right': 'goLineRightSmart',
'Alt-Backspace': 'delGroupBefore',
'Alt-Delete': 'delGroupAfter',