--- a/QScintilla/QsciScintillaCompat.py Thu Jan 30 19:00:05 2014 +0100 +++ b/QScintilla/QsciScintillaCompat.py Thu Jan 30 19:41:09 2014 +0100 @@ -1179,7 +1179,12 @@ @param event event object (QFocusEvent) """ if self.isListActive(): - self.cancelList() + if event.reason() == Qt.ActiveWindowFocusReason: + aw = QApplication.activeWindow() + if aw is None or aw.parent() is not self: + self.cancelList() + else: + self.cancelList() super().focusOutEvent(event)