From 2bdccd39964c8f6f643fd72ed7bdb648378068f8 Mon Sep 17 00:00:00 2001 From: Wu Cheng-Han Date: Wed, 27 Sep 2017 21:27:33 +0800 Subject: [PATCH] Fix home and end keys behavior for windows --- public/js/lib/editor/index.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/public/js/lib/editor/index.js b/public/js/lib/editor/index.js index 2991998..33c1e0d 100644 --- a/public/js/lib/editor/index.js +++ b/public/js/lib/editor/index.js @@ -74,6 +74,8 @@ export default class Editor { }, 'Cmd-Left': 'goLineLeftSmart', 'Cmd-Right': 'goLineRight', + 'Home': 'goLineLeftSmart', + 'End': 'goLineRight', 'Ctrl-C': function (cm) { if (!isMac && cm.getOption('keyMap').substr(0, 3) === 'vim') { document.execCommand('copy')