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

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