freeCodeCamp / COM1000

freeCodeCamp's deprecated challenge editor
19 stars 16 forks source link

Change default function of "home" and "end" keys #33

Closed SaintPeter closed 8 years ago

SaintPeter commented 8 years ago

Please add the following code to the CodeMirror init. CodeMirror.keymap.default.End = "goLineRight" CodeMirror.keymap.default.Home = "goLineLeft"

This will cause the home and end keys to go to the start/end of the word wrapped line, rather than the absolute end of the line.