X-Git-Url: https://jasonwoof.com/gitweb/?p=peach-html5-editor.git;a=blobdiff_plain;f=editor.coffee;h=785615c8b294d22c140dfabd1f48fe25158b1a3d;hp=1b2503e051afcd8484f3aaf14796ef8a29a98d54;hb=163adca780b3f37fd3fb1e09cb7bef1dd38c1c84;hpb=0e48ade448937b84f60cb57d13aa9851e2eb3976 diff --git a/editor.coffee b/editor.coffee index 1b2503e..785615c 100644 --- a/editor.coffee +++ b/editor.coffee @@ -917,6 +917,9 @@ class PeachHTML5Editor @move_cursor new_cursor return false when KEY_END + new_cursor = last_cursor_position @tree + if new_cursor? + @move_cursor new_cursor return false when KEY_BACKSPACE return false unless @cursor? @@ -947,6 +950,9 @@ class PeachHTML5Editor when KEY_ESCAPE return false when KEY_HOME + new_cursor = first_cursor_position @tree + if new_cursor? + @move_cursor new_cursor return false when KEY_INSERT return false