For now ignore middle mouse font resize on Mac applet
authoramwaterhouse <Andrew Waterhouse>
Tue, 12 Sep 2006 09:19:45 +0000 (09:19 +0000)
committeramwaterhouse <Andrew Waterhouse>
Tue, 12 Sep 2006 09:19:45 +0000 (09:19 +0000)
src/jalview/appletgui/SeqPanel.java

index 1684764..7d614e7 100755 (executable)
@@ -322,6 +322,8 @@ public class SeqPanel
      {\r
        lastMousePress = evt.getPoint();\r
 \r
+       //For now, ignore the mouseWheel font resizing on Macs\r
+       //As the Button2_mask always seems to be true\r
        if ( (evt.getModifiers() & InputEvent.BUTTON2_MASK) ==\r
          InputEvent.BUTTON2_MASK && !av.MAC)\r
        {\r
@@ -329,9 +331,11 @@ public class SeqPanel
          return;\r
        }\r
 \r
-       if (evt.isShiftDown() || evt.isControlDown())\r
+       if (evt.isShiftDown()\r
+           || evt.isControlDown()\r
+           || evt.isAltDown())\r
        {\r
-         if (evt.isControlDown())\r
+         if (evt.isControlDown() || evt.isAltDown())\r
          {\r
            groupEditing = true;\r
          }\r