summaryrefslogtreecommitdiff
path: root/public
diff options
context:
space:
mode:
authorWu Cheng-Han2017-09-27 21:27:33 +0800
committerWu Cheng-Han2017-09-27 21:27:33 +0800
commit2bdccd39964c8f6f643fd72ed7bdb648378068f8 (patch)
tree63586132dfd7c8659aacb69bfbcbdeea82cfffe6 /public
parentfe384d80bf03a4d33fd38500cbaaf2ec3abb8bdb (diff)
Fix home and end keys behavior for windows
Diffstat (limited to 'public')
-rw-r--r--public/js/lib/editor/index.js2
1 files changed, 2 insertions, 0 deletions
diff --git a/public/js/lib/editor/index.js b/public/js/lib/editor/index.js
index 2991998b..33c1e0d4 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')