Refined the focusOutEvent method of QsciScintillaCompat to not remove the auto-completion list if the user clicks inside the list.

Thu, 30 Jan 2014 19:41:09 +0100

author
Detlev Offenbach <detlev@die-offenbachs.de>
date
Thu, 30 Jan 2014 19:41:09 +0100
changeset 3233
33b91e6c5ae4
parent 3232
c2e2ca23c86b
child 3235
2b8f173b35bb

Refined the focusOutEvent method of QsciScintillaCompat to not remove the auto-completion list if the user clicks inside the list.

Documentation/Help/source.qch file | annotate | diff | comparison | revisions
QScintilla/QsciScintillaCompat.py file | annotate | diff | comparison | revisions
diff -r c2e2ca23c86b -r 33b91e6c5ae4 Documentation/Help/source.qch
Binary file Documentation/Help/source.qch has changed
diff -r c2e2ca23c86b -r 33b91e6c5ae4 QScintilla/QsciScintillaCompat.py
--- 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)
     

eric ide

mercurial