QScintilla/QsciScintillaCompat.py

changeset 325
dd7377dbd057
parent 97
c4086afea02b
child 330
4b4f242bf3f6
child 403
c5bd65142984
--- 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