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

Tue, 01 Jun 2010 13:18:57 +0200

author
Detlev Offenbach <detlev@die-offenbachs.de>
date
Tue, 01 Jun 2010 13:18:57 +0200
branch
5_0_x
changeset 324
b0f65938f873
parent 320
340a978859c6
child 329
3d31db27f86e

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:45 2010 +0200
+++ b/QScintilla/QsciScintillaCompat.py	Tue Jun 01 13:18:57 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