I have an application with a tabbed pane and different components in it. I have set a MenuItem as Action with an Accelerator:
private final Action focusDefaultCommandsAction = new AbstractAction()
{
{
putValue(NAME, "Fokusiere Kommandoliste");
putValue(ACCELERATOR_KEY, KeyStroke.getKeyStroke(KeyEvent.VK_F6, 0));
}
@Override
public void actionPerformed(final ActionEvent e)
{
invokeShowCommandsList();
}
};
I know there is one tab where the Accelearator for the F6 key doesn't work. the F7 key works.
Is there maybe a default accelerator on a Swing Element that has priority over my accelerator?