Menu

#30 Fix Mac OSX Link Problem

closed-accepted
MacOS (X) (6)
5
2011-06-03
2004-12-04
John Ralls
No

Background:
In Mac OSX, mouse button 3 is captured by the system to display the
appropriate context menu before the event is passed to the
application. Furthermore, control + mouse button 1 is interpreted as
mouse button 3 regardless of what other modifier keys are pressed.

See http://developer.apple.com/qa/qa2004/qa1362.html

Solution:
This patch changes the handling in dragGestureRecognized to test for
OSX using the Apple-recommended test (see Detecting a Macintosh
Client in http://developer.apple.com/technotes/tn/tn2042.html\) and if
true, testing InputEvent.BUTTON1_DOWN_MASK instead of
InputEvent.BUTTON3_DOWN_MASK, then testing IsMetaDown (meta
is the java name for the Apple Command key). These tests are ORed
with the original InputEvent.BUTTON3_DOWN_MASK for all other
systems.

This patch has been tested successfully on Mac OSX version 3.6 with
Apple's Java and on Linux 2.6.3 with JRE 1.4.3.

Discussion

  • John Ralls

    John Ralls - 2004-12-04

    diff -ur patch against controller/NodeDragListener v1.7

     
  • Eric L.

    Eric L. - 2007-11-21
    • labels: --> MacOS (X)
    • assigned_to: nobody --> christianfoltin
     
  • Christian Foltin

    Dear contributor,

    thanks for your patch that has been integrated into the version control. You can verify that this is correct by considering
    http://freemind.git.sourceforge.net/git/gitweb.cgi?p=freemind/freemind;a=summary

    Best regards,

    Chris from the FreeMind team

     
  • Christian Foltin

    Sorry for the delay

     
  • Christian Foltin

    • status: open --> closed-accepted
     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.