From: Jason Woofenden Date: Fri, 25 Mar 2016 22:01:01 +0000 (-0400) Subject: implement escape key (kill cursor) X-Git-Url: https://jasonwoof.com/gitweb/?p=peach-html5-editor.git;a=commitdiff_plain;h=daeea016188d4934fc55c1f05d09c5766cd1e857 implement escape key (kill cursor) --- diff --git a/editor.coffee b/editor.coffee index 785615c..3ccd200 100644 --- 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