don't miss combobox popup closing events (IDEA-64107)
authorDmitry Jemerov <yole@jetbrains.com>
Tue, 31 Jan 2012 15:35:41 +0000 (16:35 +0100)
committerDmitry Jemerov <yole@jetbrains.com>
Tue, 31 Jan 2012 15:35:41 +0000 (16:35 +0100)
platform/platform-impl/src/com/intellij/openapi/options/newEditor/OptionsEditor.java

index dd89f8039d3fd7104448131bf25275c0dd8777d2..4e6a613cb0552d104944e2e6aa998f0d0f6df70f 100644 (file)
@@ -1016,7 +1016,7 @@ public class OptionsEditor extends JPanel implements DataProvider, Place.Navigat
   public void eventDispatched(final AWTEvent event) {
     if (event.getID() == MouseEvent.MOUSE_PRESSED || event.getID() == MouseEvent.MOUSE_RELEASED || event.getID() == MouseEvent.MOUSE_DRAGGED) {
       final MouseEvent me = (MouseEvent)event;
-      if (SwingUtilities.isDescendingFrom(me.getComponent(), myContentWrapper) || isPopupOverEditor(me.getComponent())) {
+      if (SwingUtilities.isDescendingFrom(me.getComponent(), SwingUtilities.getWindowAncestor(myContentWrapper)) || isPopupOverEditor(me.getComponent())) {
         queueModificationCheck();
         myFilter.clearTemporary();
       }