]> gerrit.simantics Code Review - simantics/sysdyn.git/commitdiff
Panning from alt+middle to shift+ any mouse button
authorlempinen <lempinen@ac1ea38d-2e2b-0410-8846-a27921b304fc>
Mon, 15 Mar 2010 15:47:10 +0000 (15:47 +0000)
committerlempinen <lempinen@ac1ea38d-2e2b-0410-8846-a27921b304fc>
Mon, 15 Mar 2010 15:47:10 +0000 (15:47 +0000)
git-svn-id: https://www.simantics.org/svn/simantics/sysdyn/trunk@14934 ac1ea38d-2e2b-0410-8846-a27921b304fc

org.simantics.h2d/src/org/simantics/h2d/event/handler/DefaultEventHandlers.java

index eb6e86714a6f1c0cad3c17da50b9b91c5ea9263c..6875972964113ba175d982ed3dbb1517471ba362 100644 (file)
@@ -20,7 +20,9 @@ public class DefaultEventHandlers {
        public static void configure(IDiagramEditor editor) {\r
                editor.addEventHandler(1, "click(left)", new PickSelection());\r
                editor.addEventHandler(1, "click(ctrl+left)", new ToggleSelection());\r
-               editor.addEventHandler(1, "drag(alt+middle)", new Pan());\r
+               editor.addEventHandler(1, "drag(shift+left)", new Pan());\r
+               editor.addEventHandler(1, "drag(alt+shift+middle)", new Pan());\r
+               editor.addEventHandler(1, "drag(shift+right)", new Pan());\r
                editor.addEventHandler(1, "wheel()", new Zoom());\r
                editor.addEventHandler(1, "key(1)", new ZoomToFit());\r
                editor.addEventHandler(1, "key(Period)", new RotateCounterclockwise());\r