QScintilla/QsciScintillaCompat.py

changeset 3233
33b91e6c5ae4
parent 3215
6c5877c48067
child 3238
fa28dab59a9e
equal deleted inserted replaced
3232:c2e2ca23c86b 3233:33b91e6c5ae4
1177 Public method called when the editor loses focus. 1177 Public method called when the editor loses focus.
1178 1178
1179 @param event event object (QFocusEvent) 1179 @param event event object (QFocusEvent)
1180 """ 1180 """
1181 if self.isListActive(): 1181 if self.isListActive():
1182 self.cancelList() 1182 if event.reason() == Qt.ActiveWindowFocusReason:
1183 aw = QApplication.activeWindow()
1184 if aw is None or aw.parent() is not self:
1185 self.cancelList()
1186 else:
1187 self.cancelList()
1183 1188
1184 super().focusOutEvent(event) 1189 super().focusOutEvent(event)
1185 1190
1186 def event(self, evt): 1191 def event(self, evt):
1187 """ 1192 """

eric ide

mercurial