loleaflet/src/layer/tile/TileLayer.js | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-)
New commits: commit a71d245f284873fe37951851889ed31e4a22898c Author: Tomaž Vajngerl <tomaz.vajng...@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'); } },
_______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits