From 2aded98a3cc49183f4b2a609bf7ade631a0df2de 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 --- core/client/views/editor.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/core/client/views/editor.js b/core/client/views/editor.js index 063ca2f076..97377854a7 100644 --- a/core/client/views/editor.js +++ b/core/client/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);