I am creating a custom wxPython dialog by subclassing wx.Dialog
. When I press Enter while using it, (and while being focused on one of the form elements,) it just takes the focus to the next form element, while I want it to press the ok button.
How do I solve this?