I have code like this:
...
entry.KeyPressEvent += EntryKeyPressEvent;
...
}
void EntryKeyPressEvent(object o, KeyPressEventArgs args)
{
Console.WriteLine("DEBUG: KeyValue: " + args.Event.KeyValue);
...
}
EntryKeyPressEvent is called when most keys are pressed, but not the return key. Why is this?
Edit: It's actually not called when most keys are pressed. Some call it (e.g. uparrow, downarrow, escape), but most do not (e.g. any letter key, return).
For reference, I'm trying to port PyGTK code that looks like this:
...
entry.connect('key_press_event', self.entry_key_pressed)
...
def entry_key_pressed(self, widget, event):
...