Got questions, comments, patches, etc.?
Contact Jason Woofenden
gitweb
/
peach-html5-editor.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
0e48ade
)
implement keys: home, end
author
Jason Woofenden
<jason@jasonwoof.com>
Fri, 25 Mar 2016 22:00:01 +0000
(18:00 -0400)
committer
Jason Woofenden
<jason@jasonwoof.com>
Fri, 25 Mar 2016 22:00:01 +0000
(18:00 -0400)
editor.coffee
patch
|
blob
|
history
diff --git
a/editor.coffee
b/editor.coffee
index
1b2503e
..
785615c
100644
(file)
--- 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