loleaflet/src/layer/marker/Annotation.js | 2 ++ 1 file changed, 2 insertions(+)
New commits: commit 8b5cc4c00e899df68acb0635c12f07dbbd832a11 Author: Pranam Lashkari <lpra...@collabora.com> AuthorDate: Thu Jul 16 01:49:58 2020 +0530 Commit: Andras Timar <andras.ti...@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 <jenkinscollaboraoff...@gmail.com> Reviewed-by: Andras Timar <andras.ti...@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); } _______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits