JasonWoof Got questions, comments, patches, etc.? Contact Jason Woofenden
implement escape key (kill cursor)
authorJason Woofenden <jason@jasonwoof.com>
Fri, 25 Mar 2016 22:01:01 +0000 (18:01 -0400)
committerJason Woofenden <jason@jasonwoof.com>
Fri, 25 Mar 2016 22:01:01 +0000 (18:01 -0400)
editor.coffee

index 785615c..3ccd200 100644 (file)
@@ -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