Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

KeyEvent and national keyboard



Hello!

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

This email sent to email@hidden


Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.