[Libreoffice-commits] online.git: Branch 'distro/collabora/milestone-7' - loleaflet/src
Tomaž Vajngerl
tomaz.vajngerl at collabora.com
Thu Jan 21 11:34:03 PST 2016
loleaflet/src/layer/tile/TileLayer.js | 7 ++++++-
1 file changed, 6 insertions(+), 1 deletion(-)
New commits:
commit a71d245f284873fe37951851889ed31e4a22898c
Author: Tomaž Vajngerl <tomaz.vajngerl at collabora.com>
Date: Thu Jan 21 20:32:39 2016 +0100
loleaflet: use IE11 clipboard function for cutting too
diff --git a/loleaflet/src/layer/tile/TileLayer.js b/loleaflet/src/layer/tile/TileLayer.js
index 605797a..38e4e70 100644
--- a/loleaflet/src/layer/tile/TileLayer.js
+++ b/loleaflet/src/layer/tile/TileLayer.js
@@ -1001,7 +1001,12 @@ L.TileLayer = L.GridLayer.extend({
e = e.originalEvent;
e.preventDefault();
if (this._selectionTextContent) {
- e.clipboardData.setData('text/plain', this._selectionTextContent);
+ if (e.clipboardData) { // Standard
+ e.clipboardData.setData('text/plain', this._selectionTextContent);
+ }
+ else if (window.clipboardData) { // IE 11
+ window.clipboardData.setData('Text', this._selectionTextContent);
+ }
this._map._socket.sendMessage('uno .uno:Cut');
}
},
More information about the Libreoffice-commits
mailing list