dabo Commit
Revision 6645
Date: 2011-07-01 10:25:55 -0700 (Fri, 01 Jul 2011)
Author: Jacekk
Trac: http://trac.dabodev.com/changeset/6645

Changed:
U   trunk/dabo/ui/uiwx/dSearchBox.py

Log:
Some code cleanup, typos, etc.

Diff:
Modified: trunk/dabo/ui/uiwx/dSearchBox.py
===================================================================
--- trunk/dabo/ui/uiwx/dSearchBox.py    2011-07-01 11:43:32 UTC (rev 6644)
+++ trunk/dabo/ui/uiwx/dSearchBox.py    2011-07-01 17:25:55 UTC (rev 6645)
@@ -34,7 +34,7 @@
                        self.Unbind(wx.EVT_CHAR)
                        self.Unbind(wx.EVT_KEY_DOWN)
                        self.Unbind(wx.EVT_KEY_UP)
-                       self._txtCtrl.Bind(wx.EVT_KILL_FOCUS, 
self.__onWxGotFocus)
+                       self._txtCtrl.Bind(wx.EVT_SET_FOCUS, 
self.__onWxGotFocus)
                        self._txtCtrl.Bind(wx.EVT_KILL_FOCUS, 
self.__onWxLostFocus)
                        self._txtCtrl.Bind(wx.EVT_CHAR, self.__onWxKeyChar)
                        self._txtCtrl.Bind(wx.EVT_KEY_DOWN, self.__onWxKeyDown)
@@ -45,8 +45,7 @@
 
        #handle events
        def __onWxKeyChar(self, evt):
-               if not (isinstance(self, dabo.ui.dComboBox) and evt.KeyCode == 
9):
-                       self.raiseEvent(dEvents.KeyChar, evt)
+               self.raiseEvent(dEvents.KeyChar, evt)
 
 
        def __onWxKeyUp(self, evt):



_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://leafe.com/mailman/listinfo/dabo-dev
Searchable Archives: http://leafe.com/archives/search/dabo-dev
This message: 
http://leafe.com/archives/byMID/[email protected]

Reply via email to