[Libreoffice-commits] online.git: loleaflet/src
Mihai Varga
mihai.varga at collabora.com
Wed Nov 18 09:31:04 PST 2015
loleaflet/src/map/handler/Map.Keyboard.js | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
New commits:
commit 9d911fbf228223682bf26df128c09ae97a27c1dc
Author: Mihai Varga <mihai.varga at collabora.com>
Date: Wed Nov 18 18:59:53 2015 +0200
loleaflet: fixt ctrl + C (copy) on firefox
diff --git a/loleaflet/src/map/handler/Map.Keyboard.js b/loleaflet/src/map/handler/Map.Keyboard.js
index ec50e1b..a58c8a4 100644
--- a/loleaflet/src/map/handler/Map.Keyboard.js
+++ b/loleaflet/src/map/handler/Map.Keyboard.js
@@ -366,7 +366,10 @@ L.Map.Keyboard = L.Handler.extend({
L.Socket.sendMessage('uno .uno:SuperScript');
return true;
}
-
+ if (e.type === 'keypress' && e.originalEvent.key === 'c' && e.originalEvent.ctrlKey) {
+ // need to handle this separately for Firefox
+ return true;
+ }
return false;
}
});
More information about the Libreoffice-commits
mailing list