Example usage for com.intellij.openapi.ui.popup JBPopup dispatchKeyEvent

List of usage examples for com.intellij.openapi.ui.popup JBPopup dispatchKeyEvent

Introduction

In this page you can find the example usage for com.intellij.openapi.ui.popup JBPopup dispatchKeyEvent.

Prototype

boolean dispatchKeyEvent(@NotNull KeyEvent e);

Source Link

Document

This callback is called when new key event from the event queue is being processed.

Usage

From source file:com.intellij.ui.popup.StackingPopupDispatcherImpl.java

License:Apache License

public boolean dispatchKeyEvent(final KeyEvent e) {
    final boolean closeRequest = AbstractPopup.isCloseRequest(e);

    JBPopup popup;

    if (closeRequest) {
        popup = findPopup();//  w  w w. j av a2s.  c  om
    } else {
        popup = getFocusedPopup();
    }
    return popup != null && popup.dispatchKeyEvent(e);
}