Java Code Examples for java.awt.event.InputEvent.getModifiersExText()

The following are Jave code examples for showing how to use getModifiersExText() of the java.awt.event.InputEvent class. You can vote up the examples you like. Your votes will be used in our system to get more good examples.
Example 1
Project: openjdk-jdk10   File: ExtendedModifiersTest.java   Source Code and License Vote up 5 votes
@Override
public void keyPressed(KeyEvent e) {

    if (e.getKeyCode() == KeyEvent.VK_ESCAPE) {
        return;
    }
    modifiersEx = e.getModifiersEx();
    exText = InputEvent.getModifiersExText(modifiersEx);
    keyPressedFlag = true;

    synchronized (lock) {
        lock.notifyAll();
    }
}