From 59295487dc5bd1c3bae3a7175e34f9a9a69e405b Mon Sep 17 00:00:00 2001 From: StevenMcD Date: Wed, 16 Oct 2013 23:46:13 +0200 Subject: [PATCH] Issue/1007: Corrected the behaviour of the HOME and END keys on the CodeMirror editor by overriding their calls in the extraKeys config of the editor --- ghost/admin/views/editor.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/ghost/admin/views/editor.js b/ghost/admin/views/editor.js index 063ca2f076..97377854a7 100644 --- a/ghost/admin/views/editor.js +++ b/ghost/admin/views/editor.js @@ -410,7 +410,11 @@ tabMode: 'indent', tabindex: "2", lineWrapping: true, - dragDrop: false + dragDrop: false, + extraKeys: { + Home: "goLineLeft", + End: "goLineRight" + } }); this.uploadMgr = new UploadManager(this.editor);