I want to add a keyboard binding to a JTextField, but I cannot make it work using the alt graph key.
I followed the keyboard bindings tutorial and tried this:
inputMap.put(KeyStroke.getKeyStroke("altGraph ENTER"), ...
inputMap.put(getKeyStroke(KeyEvent.VK_O, InputEvent.ALT_GRAPH_DOWN_MASK), ...
but the action is never triggered. If I replace "alt graph" with "alt" it works.
What can I do to make it work?
If it matters: I'm using the Java 6 and Windows.