From 060c37f53ad12694bd1d37f405aba965b8af9966 Mon Sep 17 00:00:00 2001 From: Jason Woofenden Date: Sun, 13 Mar 2016 14:04:32 -0400 Subject: [PATCH] remove cursor when clicking on nothing --- editor.coffee | 2 ++ 1 file changed, 2 insertions(+) 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 -- 1.7.10.4