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

Mihai Varga mihai.varga at collabora.com
Tue Oct 27 06:38:56 PDT 2015


 loleaflet/src/map/handler/Map.Keyboard.js |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

New commits:
commit 6cd136d52663a6098cdc08fb3f93f7ae1dd7f541
Author: Mihai Varga <mihai.varga at collabora.com>
Date:   Tue Oct 27 15:38:28 2015 +0200

    loleaflet: fixed copying in firefox

diff --git a/loleaflet/src/map/handler/Map.Keyboard.js b/loleaflet/src/map/handler/Map.Keyboard.js
index 6f4f3c1..4d037ed 100644
--- a/loleaflet/src/map/handler/Map.Keyboard.js
+++ b/loleaflet/src/map/handler/Map.Keyboard.js
@@ -247,7 +247,7 @@ L.Map.Keyboard = L.Handler.extend({
 	},
 
 	_handleCtrlCommand: function (e) {
-		if (e.type !== 'keydown') {
+		if (e.type !== 'keydown' && e.originalEvent.key !== 'c') {
 			e.originalEvent.preventDefault();
 			return;
 		};
@@ -302,7 +302,7 @@ L.Map.Keyboard = L.Handler.extend({
 				L.Socket.sendMessage('uno .uno:InsertSoftHyphen');
 				break;
 		}
-		if (e.originalEvent.keyCode !== 67 && e.originalEvent.keyCode !== 86) {
+		if (e.originalEvent.keyCode !== 67 && e.originalEvent.keyCode !== 86 && e.originalEvent.key !== 'c') {
 			// not copy or paste
 			e.originalEvent.preventDefault();
 		}


More information about the Libreoffice-commits mailing list