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
(parent:
163adca
)
implement escape key (kill cursor)
author
Jason Woofenden
<jason@jasonwoof.com>
Fri, 25 Mar 2016 22:01:01 +0000
(18:01 -0400)
committer
Jason Woofenden
<jason@jasonwoof.com>
Fri, 25 Mar 2016 22:01:01 +0000
(18:01 -0400)
editor.coffee
patch
|
blob
|
history
diff --git
a/editor.coffee
b/editor.coffee
index
785615c
..
3ccd200
100644
(file)
--- a/
editor.coffee
+++ b/
editor.coffee
@@
-948,6
+948,7
@@
class PeachHTML5Editor
when KEY_ENTER
return false
when KEY_ESCAPE
+ @kill_cursor()
return false
when KEY_HOME
new_cursor = first_cursor_position @tree