Fixed the issue with autocompletion lists staying on screen after editor looses focus.

Tue, 01 Jun 2010 13:19:52 +0200

author
Detlev Offenbach <detlev@die-offenbachs.de>
date
Tue, 01 Jun 2010 13:19:52 +0200
changeset 325
dd7377dbd057
parent 319
09f456ec6fcf
child 326
59b789a13dcb

Fixed the issue with autocompletion lists staying on screen after editor looses focus.

QScintilla/QsciScintillaCompat.py file | annotate | diff | comparison | revisions
--- a/QScintilla/QsciScintillaCompat.py	Mon May 31 15:36:05 2010 +0200
+++ b/QScintilla/QsciScintillaCompat.py	Tue Jun 01 13:19:52 2010 +0200
@@ -856,7 +856,22 @@
         """
         # call into the QsciCommandSet
         self.standardCommands().clearAlternateKeys()
+
+    #####################################################################################
+    # specialized event handlers
+    #####################################################################################
     
+    def focusOutEvent(self, event):
+        """
+        Public method called when the editor loses focus.
+        
+        @param event the event object (QFocusEvent)
+        """
+        if self.isListActive():
+            self.cancelList()
+        
+        QsciScintilla.focusOutEvent(self, event)
+
     #####################################################################################
     # interface methods to the mini editor
     #####################################################################################

eric ide

mercurial