[Libreoffice-commits] online.git: Branch 'distro/collabora/co-4-2' - loleaflet/src

Pranam Lashkari (via logerrit) logerrit at kemper.freedesktop.org
Wed Jul 29 08:15:25 UTC 2020


 loleaflet/src/layer/marker/Annotation.js |    2 ++
 1 file changed, 2 insertions(+)

New commits:
commit 8b5cc4c00e899df68acb0635c12f07dbbd832a11
Author:     Pranam Lashkari <lpranam at collabora.com>
AuthorDate: Thu Jul 16 01:49:58 2020 +0530
Commit:     Andras Timar <andras.timar at collabora.com>
CommitDate: Wed Jul 29 10:15:05 2020 +0200

    tdf#132125 leaflet: setting annotations active and inactive on focus
    
    adding these classes help in pasting text in comments in calc and impress
    
    Change-Id: Id94e6017d1db5f024f4ebfa287051c799c225ec9
    Reviewed-on: https://gerrit.libreoffice.org/c/online/+/99532
    Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice at gmail.com>
    Reviewed-by: Andras Timar <andras.timar at collabora.com>

diff --git a/loleaflet/src/layer/marker/Annotation.js b/loleaflet/src/layer/marker/Annotation.js
index 4766687a3..423089011 100644
--- a/loleaflet/src/layer/marker/Annotation.js
+++ b/loleaflet/src/layer/marker/Annotation.js
@@ -127,6 +127,7 @@ L.Annotation = L.Layer.extend({
 	},
 
 	focus: function () {
+		$(this._container).addClass('annotation-active');
 		this._nodeModifyText.focus();
 		this._nodeReplyText.focus();
 	},
@@ -295,6 +296,7 @@ L.Annotation = L.Layer.extend({
 	},
 
 	_onLostFocus: function (e) {
+		$(this._container).removeClass('annotation-active');
 		if (this._contentText.origText !== this._nodeModifyText.value) {
 			this._onSaveComment(e);
 		}


More information about the Libreoffice-commits mailing list