1. Anthony Tuininga
  2. cx_PyGenLib

Commits

Anthony Tuininga  committed 00fe6aa

If the field is not editable, do not do anything with the keys!

  • Participants
  • Parent commits e180ac6
  • Branches default

Comments (0)

Files changed (1)

File ceGUI/SimpleControls.py

View file
                 skipEvent = False)
 
     def OnChar(self, event):
+        if not self.IsEditable():
+            event.Skip()
+            return
         key = event.GetKeyCode()
         if key < ord('a') or key > ord('z'):
             event.Skip()