List of usage examples for java.awt.event InputEvent ALT_DOWN_MASK
int ALT_DOWN_MASK
To view the source code for java.awt.event InputEvent ALT_DOWN_MASK.
Click Source Link
From source file:org.wings.plaf.css.InputMapScriptListener.java
private static void writeMatch(StringBuffer buffer, KeyStroke keyStroke) { buffer.append("if (event.keyCode == " + keyStroke.getKeyCode()); if ((keyStroke.getModifiers() & InputEvent.SHIFT_DOWN_MASK) != 0) buffer.append(" && event.shiftKey"); else//w w w. ja va2 s . c om buffer.append(" && !event.shiftKey"); if ((keyStroke.getModifiers() & InputEvent.CTRL_DOWN_MASK) != 0) buffer.append(" && event.ctrlKey"); else buffer.append(" && !event.ctrlKey"); if ((keyStroke.getModifiers() & InputEvent.ALT_DOWN_MASK) != 0) buffer.append(" && event.altKey"); else buffer.append(" && !event.altKey"); buffer.append(")"); }