Fix home and end keys behavior for windows

This commit is contained in:
Wu Cheng-Han 2017-09-27 21:27:33 +08:00
parent fe384d80bf
commit 2bdccd3996
1 changed files with 2 additions and 0 deletions

View File

@ -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')