Bläddra i källkod

Additional fix for messenger conflict

M. Ian Graham 18 år sedan
förälder
incheckning
189f83bcd2
1 ändrade filer med 3 tillägg och 2 borttagningar
  1. 3 2
      direct/src/gui/DirectEntry.py

+ 3 - 2
direct/src/gui/DirectEntry.py

@@ -234,8 +234,9 @@ class DirectEntry(DirectFrame):
     def focusOutCommandFunc(self):
         if self['focusOutCommand']:
             apply(self['focusOutCommand'], self['focusOutExtraArgs'])
-        self.ignore(self.guiItem.getTypeEvent())
-        self.ignore(self.guiItem.getEraseEvent())
+        if self['autoCapitalize']:
+            self.ignore(self.guiItem.getTypeEvent())
+            self.ignore(self.guiItem.getEraseEvent())
 
     def set(self, text):
         """ Changes the text currently showing in the typable region;