JasonWoof Got questions, comments, patches, etc.? Contact Jason Woofenden
remove cursor when clicking on nothing
[peach-html5-editor.git] / editor.coffee
index 92fc1e0..7ef8e37 100644 (file)
@@ -665,6 +665,8 @@ class PeachHTML5Editor
                new_cursor = find_loc_cursor_position @tree, xy
                if new_cursor?
                        @move_cursor new_cursor
+               else
+                       @kill_cursor()
                return false
        ondoubleclick: (e) ->
                return false