For example, say I have a series of toolbar-style buttons across the top of my application's main window. I want to attach a mnemonic to one of these that's just a single keypress, like F3.
When you set the mnemonic to KeyEvent.VK_F3
, the user has to press Alt+F3.
If you have a menu item, you can set an accelerator, rather than a mnemonic, and choose whether to use a meta key. Buttons don't let you set an accelerator, however.
Is there a way to turn of the meta-key for button mnemonics?