[Libreoffice-commits] online.git: Branch 'distro/collabora/milestone-7' - loleaflet/src
Jan Holesovsky
kendy at collabora.com
Thu Jan 14 23:59:36 PST 2016
loleaflet/src/map/handler/Map.Keyboard.js | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
New commits:
commit 59c0d863fc47c637e1ea2733acf36befc6fb6b27
Author: Jan Holesovsky <kendy at collabora.com>
Date: Fri Jan 15 08:58:50 2016 +0100
loleaflet: Fix paste in Firefox.
diff --git a/loleaflet/src/map/handler/Map.Keyboard.js b/loleaflet/src/map/handler/Map.Keyboard.js
index bb07c75..6b03aaa 100644
--- a/loleaflet/src/map/handler/Map.Keyboard.js
+++ b/loleaflet/src/map/handler/Map.Keyboard.js
@@ -361,7 +361,7 @@ L.Map.Keyboard = L.Handler.extend({
this._map._socket.sendMessage('uno .uno:SuperScript');
return true;
}
- if (e.type === 'keypress' && e.originalEvent.key === 'c' && e.originalEvent.ctrlKey) {
+ if (e.type === 'keypress' && e.originalEvent.ctrlKey && (e.originalEvent.key === 'c' || e.originalEvent.key === 'v')) {
// need to handle this separately for Firefox
return true;
}
More information about the Libreoffice-commits
mailing list