Change Mac keyboard mappings for Windows-built java GUI

8 views
Skip to first unread message

mic...@idengren.com

unread,
Jun 20, 2017, 12:16:58 PM6/20/17
to JNIWrapper Forum
Hello,

I have a Java app that was built for Windows, and it is hard-wired to look for ctrl+click to select multiple items.  Of course, ctrl+click is hard-wired in OS X to do a right click.  I think wrapping this java app with JNIWrapper would be a solution to map the Mac command+click to the proper Windows equivalent ctrl+click and send that to the application for proper multi-item selection.

Is this possible with JNIWrapper?  Is there some example code that could get me started?


Anna Dolbina

unread,
Jun 26, 2017, 8:06:51 AM6/26/17
to mic...@idengren.com, JNIWrapper Forum
Hi,

Could you please provide us with more information about your Java application?

Is it correct that your Java application checks for the Control modifier (or uses MouseEvent.isControlDown()) in its event listeners and you want to make this modifier set to true when the Command key is pressed on Mac?

In addition, could you please specify whether the desired behavior should be applied to each component in your application?

Sincerely,
Anna


--
You received this message because you are subscribed to the Google Groups "JNIWrapper Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jniwrapper-forum+unsubscribe@teamdev.com.
To view this discussion on the web visit https://groups.google.com/a/teamdev.com/d/msgid/jniwrapper-forum/cfdbcb8b-247f-4c29-a607-e8f2d2fd21f8%40teamdev.com.

Reply all
Reply to author
Forward
0 new messages