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

New commits:
commit 87d9769187a2f39ee1044199e8c195c6e38ee4a4
Author:     Pranam Lashkari <lpra...@collabora.com>
AuthorDate: Thu Jul 16 01:49:58 2020 +0530
Commit:     Henry Castro <hcas...@collabora.com>
CommitDate: Tue Jul 28 00:39:18 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/+/98860
    Tested-by: Jenkins
    Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoff...@gmail.com>
    Reviewed-by: Henry Castro <hcas...@collabora.com>

diff --git a/loleaflet/src/layer/marker/Annotation.js 
b/loleaflet/src/layer/marker/Annotation.js
index f60b7b680..b8d24a482 100644
--- a/loleaflet/src/layer/marker/Annotation.js
+++ b/loleaflet/src/layer/marker/Annotation.js
@@ -145,6 +145,7 @@ L.Annotation = L.Layer.extend({
        },
 
        focus: function () {
+               $(this._container).addClass('annotation-active');
                this._nodeModifyText.focus();
                this._nodeReplyText.focus();
        },
@@ -313,6 +314,7 @@ L.Annotation = L.Layer.extend({
        },
 
        _onLostFocus: function (e) {
+               $(this._container).removeClass('annotation-active');
                if (this._contentText.origText !== this._nodeModifyText.value) {
                        this._onSaveComment(e);
                }
_______________________________________________
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits

Reply via email to