I want to use +/- in my swing app as shortcut for zomm in/out. This
is sort of how I do it:
switch (myKeyEvent.getKeyCode()) {
case KeyEvent.VK_PLUS:
-- zoom in
break;
case KeyEvent.VK_MINUS:
-- zoom out
break;
}
This is working perfectly on windows, but not on my Mac with a
norwegian keyboard layout. I have to press the button that has the
minus-sign on a UK/US keyboard to make it zoom out.
Anyone else seen this behaviour? Is it to be expected? Are the mac or
the windows computer behaving correctly? What are the correct way to
do this? This is all with java 5.
Regards,
- Tore.
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Java-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/java-dev/email@hidden