[OSM-dev] josm apple-click
Shaun McDonald
shaun at shaunmcdonald.me.uk
Tue Oct 16 22:46:02 BST 2007
Hi Steve,
You obviously haven't got the settings for your trackpad right. I can
use the trackpad to move around easily.
You need to enable the following options in the Keyboard and Mouse
system preferences > Trackpad.
* Clicking
* Tap trackpad using two fingers for secondary click.
Now for the tough bit to get a hang of:
1. put 2 fingers on the trackpad as though you are going to do two
fingered scrolling.
2. push the trackpad button
3. move the 2 fingers on the trackpad
4. you should now be panning around
Hope this allows you to pan around until another option is available.
Shaun
On 16 Oct 2007, at 21:11, Steve Coast wrote:
> Frederik
>
> It would be nice if JOSM panned the map on apple-click on macs as
> I've left my USB mouse somewhere. e.isMetaDown() is the test and
> after a few minutes I got it working with the diff below, but I'm
> missing something as it still draws a box to zoom to and then zooms
> on mouseup.... I figured I'd hand it to you rather than dick about
> with it...
>
> Index: src/org/openstreetmap/josm/gui/MapMover.java
> ===================================================================
> --- src/org/openstreetmap/josm/gui/MapMover.java (revision 392)
> +++ src/org/openstreetmap/josm/gui/MapMover.java (working copy)
> @@ -93,8 +93,9 @@
> * If the right (and only the right) mouse button is
> pressed, move the map
> */
> public void mouseDragged(MouseEvent e) {
> + //System.out.println(e.isMetaDown());
> int offMask = MouseEvent.BUTTON1_DOWN_MASK |
> MouseEvent.BUTTON2_DOWN_MASK;
> - if ((e.getModifiersEx() &
> (MouseEvent.BUTTON3_DOWN_MASK | offMask)) ==
> MouseEvent.BUTTON3_DOWN_MASK) {
> + if (((e.getModifiersEx() &
> (MouseEvent.BUTTON3_DOWN_MASK | offMask)) ==
> MouseEvent.BUTTON3_DOWN_MASK) || e.isMetaDown()) {
> if (mousePosMove == null)
> startMovement(e);
> EastNorth center = nc.getCenter();
> @@ -112,7 +113,7 @@
> */
> @Override public void mousePressed(MouseEvent e) {
> int offMask = MouseEvent.BUTTON1_DOWN_MASK |
> MouseEvent.BUTTON2_DOWN_MASK;
> - if (e.getButton() == MouseEvent.BUTTON3 &&
> (e.getModifiersEx() & offMask) == 0)
> + if ((e.getButton() == MouseEvent.BUTTON3 &&
> (e.getModifiersEx() & offMask) == 0) || e.isMetaDown())
> startMovement(e);
> }
>
>
>
> have fun,
>
> SteveC | steve at asklater.com | http://www.asklater.com/steve/
>
>
>
> _______________________________________________
> dev mailing list
> dev at openstreetmap.org
> http://lists.openstreetmap.org/cgi-bin/mailman/listinfo/dev
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 2433 bytes
Desc: not available
URL: <http://lists.openstreetmap.org/pipermail/dev/attachments/20071016/28c63133/attachment.bin>
More information about the dev
mailing list