IDEA-187808 "Typeahead timeout is exceeded" exception

Interrupt typeahead state when any DialogWrapper appears
This commit is contained in:
Vassiliy.Kudryashov
2018-04-06 19:13:49 +03:00
parent eee99bdb3c
commit c1a7a03db9
2 changed files with 1 additions and 2 deletions
@@ -144,7 +144,6 @@ public class FindDialog extends DialogWrapper implements FindUI {
public FindDialog(FindUIHelper helper){
super(helper.getProject(), true);
UIUtil.markAsTypeAheadAware(getWindow());
myHelper = helper;
myProject = myHelper.getProject();
@@ -40,7 +40,6 @@ import com.intellij.ui.mac.foundation.Foundation;
import com.intellij.ui.mac.foundation.ID;
import com.intellij.ui.mac.foundation.MacUtil;
import com.intellij.util.IJSwingUtilities;
import com.intellij.util.ReflectionUtil;
import com.intellij.util.ui.GraphicsUtil;
import com.intellij.util.ui.JBInsets;
import com.intellij.util.ui.OwnerOptional;
@@ -523,6 +522,7 @@ public class DialogWrapperPeerImpl extends DialogWrapperPeer {
@NotNull ActionCallback typeAheadDone,
ActionCallback typeAheadCallback) {
super(owner);
UIUtil.markAsTypeAheadAware(this);
myDialogWrapper = new WeakReference<>(dialogWrapper);
myProject = project != null ? new WeakReference<>(project) : null;