[Libreoffice-commits] online.git: loleaflet/src

Libreoffice Gerrit user logerrit at kemper.freedesktop.org
Sat Sep 8 13:22:42 UTC 2018


 loleaflet/src/layer/marker/ClipboardContainer.js |   20 ++------------------
 1 file changed, 2 insertions(+), 18 deletions(-)

New commits:
commit bc1d04c3ce92460ade7dde9ca9021a0f72092aab
Author:     Henry Castro <hcastro at collabora.com>
AuthorDate: Sat Sep 8 09:19:00 2018 -0400
Commit:     Henry Castro <hcastro at collabora.com>
CommitDate: Sat Sep 8 09:21:53 2018 -0400

    loleaflet: fix cursor blinking
    
    Change-Id: I5fa9b31a8c9186efd79c49faba40b9ad84730e4c

diff --git a/loleaflet/src/layer/marker/ClipboardContainer.js b/loleaflet/src/layer/marker/ClipboardContainer.js
index 4dfddad7e..b402eda64 100644
--- a/loleaflet/src/layer/marker/ClipboardContainer.js
+++ b/loleaflet/src/layer/marker/ClipboardContainer.js
@@ -18,9 +18,7 @@ L.ClipboardContainer = L.Layer.extend({
 		L.DomEvent.on(this._textArea, 'copy cut paste ' +
 		              'keydown keypress keyup ' +
 		              'compositionstart compositionupdate compositionend textInput',
-		              this._map._handleDOMEvent, this._map)
-			  .on(this._textArea, 'focus', this.onGotFocus, this)
-			  .on(this._textArea, 'blur', this.onLostFocus, this);
+		              this._map._handleDOMEvent, this._map);
 	},
 
 	onRemove: function () {
@@ -31,24 +29,10 @@ L.ClipboardContainer = L.Layer.extend({
 		L.DomEvent.off(this._textArea, 'copy cut paste ' +
 		               'keydown keypress keyup ' +
 		               'compositionstart compositionupdate compositionend textInput',
-		               this._map._handleDOMEvent, this._map)
-			  .off(this._textArea, 'focus', this.onGotFocus, this)
-			  .off(this._textArea, 'blur', this.onLostFocus, this);
-	},
-
-	onGotFocus: function () {
-		this.setLatLng(this._map._docLayer._updateCursorPos());
-	},
-
-	onLostFocus: function () {
-		this._map.removeLayer(this._map._docLayer._cursorMarker);
+		               this._map._handleDOMEvent, this._map);
 	},
 
 	focus: function(focus) {
-		if (this._map._permission !== 'edit') {
-			return;
-		}
-
 		if (focus === false) {
 			this._textArea.blur();
 		} else {


More information about the Libreoffice-commits mailing list