Skip to content

Commit 2bdccd3

Browse files
committed
Fix home and end keys behavior for windows
1 parent fe384d8 commit 2bdccd3

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

public/js/lib/editor/index.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,8 @@ export default class Editor {
7474
},
7575
'Cmd-Left': 'goLineLeftSmart',
7676
'Cmd-Right': 'goLineRight',
77+
'Home': 'goLineLeftSmart',
78+
'End': 'goLineRight',
7779
'Ctrl-C': function (cm) {
7880
if (!isMac && cm.getOption('keyMap').substr(0, 3) === 'vim') {
7981
document.execCommand('copy')

0 commit comments

Comments
 (0)