mirror of
https://github.com/webodf/WebODF.git
synced 2026-11-30 16:47:58 +01:00
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:
committed by
Jos van den Oever
parent
3e2a04e061
commit
2f645a32e7
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user