From 0cbf01a717c573a10d3beda7f25c1cc3020f183e Mon Sep 17 00:00:00 2001 From: Mikhail Sokolov Date: Tue, 10 Jul 2018 15:47:39 +0300 Subject: [PATCH] IDEA-193403 New SE: incorrect integration with other popups --- .../ide/actions/searcheverywhere/SearchEverywhereUI.java | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/platform/lang-impl/src/com/intellij/ide/actions/searcheverywhere/SearchEverywhereUI.java b/platform/lang-impl/src/com/intellij/ide/actions/searcheverywhere/SearchEverywhereUI.java index 04d8284d3e88..102ad4e649fd 100644 --- a/platform/lang-impl/src/com/intellij/ide/actions/searcheverywhere/SearchEverywhereUI.java +++ b/platform/lang-impl/src/com/intellij/ide/actions/searcheverywhere/SearchEverywhereUI.java @@ -585,6 +585,14 @@ public class SearchEverywhereUI extends BorderLayoutPanel implements Disposable, .getMessageBus() .connect(this) .subscribe(ProgressWindow.TOPIC, pw -> Disposer.register(pw,() -> myResultsList.repaint())); + + mySearchField.addFocusListener(new FocusAdapter() { + @Override + public void focusLost(FocusEvent e) { + stopSearching(); + searchFinishedHandler.run(); + } + }); } private void elementsSelected(int[] indexes, int modifiers) {