Bug opening Auto complete frame when not expected fixed
authorlbessard
Mon, 23 Mar 2009 16:40:02 +0100
changeset 326 386566f263f3
parent 325 f2604900bf25
child 327 e82c422ad811
Bug opening Auto complete frame when not expected fixed
TextCtrlAutoComplete.py
--- a/TextCtrlAutoComplete.py	Mon Mar 23 16:39:23 2009 +0100
+++ b/TextCtrlAutoComplete.py	Mon Mar 23 16:40:02 2009 +0100
@@ -45,7 +45,7 @@
 
         #Some variables
         self._dropDownClick = dropDownClick
-        self._lastinsertionpoint = 0
+        self._lastinsertionpoint = None
         
         self._screenheight = wx.SystemSettings.GetMetric(wx.SYS_SCREEN_Y)
         self.element_path = element_path
@@ -124,6 +124,7 @@
     def onClickToggleUp(self, event):
         if self.GetInsertionPoint() == self._lastinsertionpoint:
             self._showDropDown(not self.dropdown.IsShown())
+        self._lastinsertionpoint = None
         event.Skip()
 
     def onControlChanged(self, event):