Example usage for com.intellij.openapi.ui.popup.util PopupUtil handleEscKeyEvent

List of usage examples for com.intellij.openapi.ui.popup.util PopupUtil handleEscKeyEvent

Introduction

In this page you can find the example usage for com.intellij.openapi.ui.popup.util PopupUtil handleEscKeyEvent.

Prototype

public static boolean handleEscKeyEvent() 

Source Link

Usage

From source file:com.chrisrm.idea.wizard.MTWizardDialog.java

License:Open Source License

@NotNull
@Override// w ww . j a  va  2 s  . co  m
protected ActionListener createCancelAction() {
    return e -> {
        if (!PopupUtil.handleEscKeyEvent()) {
            doCancelAction(e);
        }
    };
}