--- 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 #####################################################################################