From: lempinen Date: Mon, 15 Mar 2010 15:47:10 +0000 (+0000) Subject: Panning from alt+middle to shift+ any mouse button X-Git-Tag: simantics-1.0~26 X-Git-Url: https://gerrit.simantics.org/r/gitweb?a=commitdiff_plain;h=5bd4eff4aa5a4b7f001ae13fbea2f220df64afad;p=simantics%2Fsysdyn.git 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 --- 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());