JasonWoof Got questions, comments, patches, etc.? Contact Jason Woofenden
implement escape key (kill cursor)
[peach-html5-editor.git] / 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