[Libreoffice-commits] online.git: loleaflet/src
Jan Holesovsky
kendy at collabora.com
Fri Jan 15 00:00:27 PST 2016
loleaflet/src/map/handler/Map.Keyboard.js | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
New commits:
commit 7009ee8e207cda3399e0c9014d04dee2f29ec2c8
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 637e01c..7e8870f 100644
--- a/loleaflet/src/map/handler/Map.Keyboard.js
+++ b/loleaflet/src/map/handler/Map.Keyboard.js
@@ -395,7 +395,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