Hi!
In Javascript there's an event onfocusout
triggered when the user has left an editable text input.
Similarly, I want to execute a function when the user leaves the EditText (by Tab or mouse) of my GeDialog. I thought maybe I could listen for the message with the ID of c4d.BFM_LOSTFOCUS
, but that seems to be when the entire GeDialog loses focus (similar to c4d.BFM_ACTIVE_CHG
). I also tried c4d.BFM_INTERACTEND
but that happens after every input, including keystrokes. How can I listen for when a user leaves an EditText please? Thank you!
ids = [c4d.BFM_MARKFOCUS,c4d.BFM_ACTIVE_CHG,c4d.BFM_SETFOCUS,c4d.BFM_INTERACTEND,\
c4d.BFM_ACTION,c4d.BFM_LOSTFOCUS]
def Message(self, msg, result):
if msg.GetId() in self.ids:
for cid,val in msg:
print cid,val
return c4d.gui.GeDialog.Message(self, msg, result)