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)
This commit is contained in:
Philip Peitsch
2013-07-24 01:26:58 +02:00
committed by Jos van den Oever
parent 3e2a04e061
commit 2f645a32e7
+1 -1
View File
@@ -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);