List of usage examples for java.awt.event InputEvent getModifiersEx
public int getModifiersEx()
From source file:Main.java
static boolean isControlDown(final InputEvent event) { final int modifiersEx = event.getModifiersEx(); final int flag = modifiersEx & InputEvent.CTRL_DOWN_MASK; return flag != 0; }