12.11.2014, 10:40
(11.11.2014, 14:46)routeconverter Wrote:(11.11.2014, 08:33)ryanthara Wrote: [..] I found out, that the JMenuHelper.java has the code base for the keystrokes.
That is the correct place. I'm using the JDK standard mechanism: javax.swing.KeyStroke#getKeyStroke
In most cases the meta-key is ignored and then set to ctrl.
(11.11.2014, 14:46)routeconverter Wrote:(11.11.2014, 08:33)ryanthara Wrote: A simple question, are the shortcuts working under windows and linux?
Yes
(11.11.2014, 08:33)ryanthara Wrote: I need a little bit more background. Do you use a visual design tool for the gui? If the answer is yes, which one?
I'm using IntelliJ IDEA as indicated in the README and FAQ.
But to solve the problem, we need tips like this and this.
Apple states
Quote:You should make your keyboard shortcuts conditional based on the current platform, because standard shortcuts vary across platforms.and so RouteConverter should be extended to address this. Keystrokes are defined in the source code
and in resource bundles:Code:contentPane.registerKeyboardAction(new DialogAction(this) {
public void run() {
cancel();
}
}, getKeyStroke(VK_ESCAPE, 0), WHEN_ANCESTOR_OF_FOCUSED_COMPONENT);
So far, I'm just guessing, that "ctrl N" should be "meta N" on Mac OS X - is that valid?Code:new-file-action=New
new-file-action-mnemonic=N
new-file-action-keystroke=ctrl N
You are right. On Mac OS X the meta-key, formerly known as apple-key is today titled with cmd.