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.
+ Save this method
Example 1
Project: openjdk-jdk10   File:   View Source Code Vote up 5 votes
public void keyPressed(KeyEvent e) {

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

    synchronized (lock) {