dabo Commit
Revision 5889
Date: 2010-06-15 12:34:25 -0700 (Tue, 15 Jun 2010)
Author: Paul
Trac: http://trac.dabodev.com/changeset/5889

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

Log:
Added suggested patch by Jacek to allow forcing case and length of international
languages, too. Ticket #1363


Diff:
Modified: trunk/dabo/ui/uiwx/dComboBox.py
===================================================================
--- trunk/dabo/ui/uiwx/dComboBox.py     2010-06-13 14:33:01 UTC (rev 5888)
+++ trunk/dabo/ui/uiwx/dComboBox.py     2010-06-15 19:34:25 UTC (rev 5889)
@@ -6,6 +6,7 @@
 import dabo.dEvents as dEvents
 from dabo.dLocalize import _
 from dabo.ui import makeDynamicProperty
+import dKeys
 
 
 class dComboBox(dcm.dControlItemMixin, wx.ComboBox):
@@ -86,9 +87,8 @@
                if not self:
                        # The control is being destroyed
                        return
-               keyChar = evt.keyChar
-               if keyChar is not None and (keyChar.isalnum() 
-                               or keyChar in 
""",./<>?;':"[]\\{}|`...@#$%%^&*()-_=+"""):
+               keyCode = evt.keyCode
+               if keyCode >= dKeys.key_Space:
                        dabo.ui.callAfter(self._checkForceCase)
                        dabo.ui.callAfter(self._checkTextLength)
 



_______________________________________________
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