From 2f645a32e7a9178377b04aa824401b25c8128317 Mon Sep 17 00:00:00 2001 From: Philip Peitsch Date: Tue, 23 Jul 2013 14:37:33 +1000 Subject: [PATCH] Hide the caret when focus is lost This method is only ever called on the local cursor. It brings the behaviour inline with other editing applications which hide the cursor when focus is switched away from the particular document (e.g., LibreOffice) --- webodf/lib/gui/Caret.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/webodf/lib/gui/Caret.js b/webodf/lib/gui/Caret.js index 173ecafa..ed3895ca 100644 --- a/webodf/lib/gui/Caret.js +++ b/webodf/lib/gui/Caret.js @@ -256,7 +256,7 @@ gui.Caret = function Caret(cursor, avatarInitiallyVisible) { this.removeFocus = function () { focused = false; avatar.markAsFocussed(false); - span.style.opacity = "1"; + span.style.opacity = "0"; }; this.setAvatarImageUrl = function (url) { avatar.setImageUrl(url);