[Libreoffice-commits] online.git: Branch 'distro/collabora/milestone-7' - loleaflet/src

Andras Timar andras.timar at collabora.com
Mon Jan 25 03:04:43 PST 2016


 loleaflet/src/map/handler/Map.Keyboard.js |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit b1840709fa6fc9bd1eed68878fd335c042c23735
Author: Andras Timar <andras.timar at collabora.com>
Date:   Mon Jan 25 12:03:24 2016 +0100

    loleaflet: Cmd on Mac should be sent as Ctrl to server (Linux)

diff --git a/loleaflet/src/map/handler/Map.Keyboard.js b/loleaflet/src/map/handler/Map.Keyboard.js
index 8c10cef..8b97241 100644
--- a/loleaflet/src/map/handler/Map.Keyboard.js
+++ b/loleaflet/src/map/handler/Map.Keyboard.js
@@ -230,7 +230,7 @@ L.Map.Keyboard = L.Handler.extend({
 		var shift = e.originalEvent.shiftKey ? this.keyModifier.shift : 0;
 		var ctrl = e.originalEvent.ctrlKey ? this.keyModifier.ctrl : 0;
 		var alt = e.originalEvent.altKey ? this.keyModifier.alt : 0;
-		var cmd = e.originalEvent.metaKey ? this.keyModifier.ctrlMac : 0;
+		var cmd = e.originalEvent.metaKey ? this.keyModifier.ctrl : 0;
 		this.modifier = shift | ctrl | alt | cmd;
 
 		if (ctrl || cmd) {


More information about the Libreoffice-commits mailing list