Shortcuts in Swing? (question for pals from Apple) (original) (raw)

Yuri Nesterenko yuri.nesterenko at oracle.com
Tue Nov 22 23:17:38 PST 2011


NB: I use this page for reference: Mac OS X keyboard shortcuts http://support.apple.com/kb/ht1343

Thanks, -yan

On 11/21/2011 11:11 PM, Alexander Potochkin wrote:

Hello guys

We have a code snippet which tests the various shortcuts in a simple Swing application, Alt+A and Alt+B are among them. It turned out that when the focus is inside a JTextArea, Alt+A works as expected but Alt+B types a special symbol. This behavior is different from what we have on Windows or Linux and our testers consider it as a bug. Is there any workarounds to suppress typing on Alt+B? (Alt+B + some other magic keys?) If not, is there a specification that counts the shortcuts that can't be mapped to the users action? By the way, how to move the focus out of a focused JTextArea on Mac? On windows we use Ctrl+Tab, but it doesn't work on Mac. Thanks much alexp



More information about the macosx-port-dev mailing list