JasonWoof Got questions, comments, patches, etc.? Contact Jason Woofenden
remove cursor when clicking on nothing
authorJason Woofenden <jason@jasonwoof.com>
Sun, 13 Mar 2016 18:04:32 +0000 (14:04 -0400)
committerJason Woofenden <jason@jasonwoof.com>
Sun, 13 Mar 2016 18:04:32 +0000 (14:04 -0400)
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