From 5bd4eff4aa5a4b7f001ae13fbea2f220df64afad Mon Sep 17 00:00:00 2001 From: lempinen Date: Mon, 15 Mar 2010 15:47:10 +0000 Subject: [PATCH] Panning from alt+middle to shift+ any mouse button git-svn-id: https://www.simantics.org/svn/simantics/sysdyn/trunk@14934 ac1ea38d-2e2b-0410-8846-a27921b304fc --- .../org/simantics/h2d/event/handler/DefaultEventHandlers.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/org.simantics.h2d/src/org/simantics/h2d/event/handler/DefaultEventHandlers.java b/org.simantics.h2d/src/org/simantics/h2d/event/handler/DefaultEventHandlers.java index eb6e8671..68759729 100644 --- a/org.simantics.h2d/src/org/simantics/h2d/event/handler/DefaultEventHandlers.java +++ b/org.simantics.h2d/src/org/simantics/h2d/event/handler/DefaultEventHandlers.java @@ -20,7 +20,9 @@ public class DefaultEventHandlers { public static void configure(IDiagramEditor editor) { editor.addEventHandler(1, "click(left)", new PickSelection()); editor.addEventHandler(1, "click(ctrl+left)", new ToggleSelection()); - editor.addEventHandler(1, "drag(alt+middle)", new Pan()); + editor.addEventHandler(1, "drag(shift+left)", new Pan()); + editor.addEventHandler(1, "drag(alt+shift+middle)", new Pan()); + editor.addEventHandler(1, "drag(shift+right)", new Pan()); editor.addEventHandler(1, "wheel()", new Zoom()); editor.addEventHandler(1, "key(1)", new ZoomToFit()); editor.addEventHandler(1, "key(Period)", new RotateCounterclockwise()); -- 2.47.1