From 8b2346cf466e7347f5541fa47bc9f0f4965a388b Mon Sep 17 00:00:00 2001 From: Felix Rieseberg Date: Sat, 2 Aug 2014 23:40:12 -0700 Subject: [PATCH] Insert inline code shortcut for editor closes #3543 - Wired up existing code shortcut in codemirror-shortcuts.js in editor-shortcuts.js --- ghost/admin/utils/editor-shortcuts.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ghost/admin/utils/editor-shortcuts.js b/ghost/admin/utils/editor-shortcuts.js index bcb022236d..e8edd92d0f 100644 --- a/ghost/admin/utils/editor-shortcuts.js +++ b/ghost/admin/utils/editor-shortcuts.js @@ -21,7 +21,6 @@ shortcuts['ctrl+U'] = {action: 'codeMirrorShortcut', options: {type: 'uppercase' shortcuts['ctrl+shift+U'] = {action: 'codeMirrorShortcut', options: {type: 'lowercase'}}; shortcuts['ctrl+alt+shift+U'] = {action: 'codeMirrorShortcut', options: {type: 'titlecase'}}; - //Headings shortcuts['ctrl+alt+1'] = {action: 'codeMirrorShortcut', options: {type: 'h1'}}; shortcuts['ctrl+alt+2'] = {action: 'codeMirrorShortcut', options: {type: 'h2'}}; @@ -38,6 +37,7 @@ shortcuts['ctrl+l'] = {action: 'codeMirrorShortcut', options: {type: 'list'}}; shortcuts['ctrl+shift+1'] = {action: 'codeMirrorShortcut', options: {type: 'currentDate'}}; shortcuts[ctrlOrCmd + '+k'] = {action: 'codeMirrorShortcut', options: {type: 'link'}}; shortcuts[ctrlOrCmd + '+shift+i'] = {action: 'codeMirrorShortcut', options: {type: 'image'}}; +shortcuts[ctrlOrCmd + '+shift+k'] = {action: 'codeMirrorShortcut', options: {type: 'code'}}; //Currently broken CodeMirror Markdown shortcuts. // Some may be broken due to a conflict with CodeMirror commands.