From: Jason Woofenden Date: Sun, 13 Mar 2016 18:04:32 +0000 (-0400) Subject: remove cursor when clicking on nothing X-Git-Url: https://jasonwoof.com/gitweb/?p=peach-html5-editor.git;a=commitdiff_plain;h=060c37f53ad12694bd1d37f405aba965b8af9966 remove cursor when clicking on nothing --- diff --git a/editor.coffee b/editor.coffee index 92fc1e0..7ef8e37 100644 --- a/editor.coffee +++ b/editor.coffee @@ -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