Example usage for java.awt.event InputEvent ALT_GRAPH_DOWN_MASK

List of usage examples for java.awt.event InputEvent ALT_GRAPH_DOWN_MASK

Introduction

In this page you can find the example usage for java.awt.event InputEvent ALT_GRAPH_DOWN_MASK.

Prototype

int ALT_GRAPH_DOWN_MASK

To view the source code for java.awt.event InputEvent ALT_GRAPH_DOWN_MASK.

Click Source Link

Document

The AltGraph key extended modifier constant.

Usage

From source file:Main.java

static boolean isModifierKeyDown(final InputEvent event) {
    final int modifiersEx = event.getModifiersEx();
    final int flag = modifiersEx & (InputEvent.SHIFT_DOWN_MASK | InputEvent.ALT_DOWN_MASK
            | InputEvent.ALT_GRAPH_DOWN_MASK | InputEvent.CTRL_DOWN_MASK | InputEvent.META_DOWN_MASK);
    return flag != 0;
}