Mailing Lists: Apple Mailing Lists

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

Re: KeyEvent.getKeyText() went wonky (won't display arrows)



Mike Swingler wrote:

>As always, we are looking to improve the user experience of Java on Mac OS
>X, and will try to find a better (and maintainable) solution to this issue.

One simple thing to do is to disable the mapping of the strings by
Toolkit.getProperty().  That could be accomplished by setting the system
property that determines where the ResourceBundle is loaded from.

Off the top of my head, I don't know what this property is, nor where the
default bundle resources are located, but a little digging into the source
should find it.  Then it's just a question of how you want it: set the
property one way or the other to get original behavior or new.  Ultimately,
a Q&A seems like a good idea, but finding the information and posting ot
the list would be good enough for now.

This unwanted behavior isn't hard-wired into Java itself, as the OP
suggested.  The values being returned come from a ResourceBundle, and those
are modifiable and selectable, by design.

  -- GG


 _______________________________________________
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.