wxComboBox - how to suppress the bell when pressing enter

Is there a way of suppressing the bell when one presses enter in a wxComboBox, and instead just have the focus go to the next control.

Best regards
Werner

Werner F. Bruhin wrote:

Is there a way of suppressing the bell when one presses enter in a wxComboBox, and instead just have the focus go to the next control.

This is in the ActiveXWrapper_IE demo and was done to avoid the beep.
You should be able to adapt it to change focus to the next control.

         EVT_CHAR(self.location, self.IgnoreReturn)

     def IgnoreReturn(self, evt):
         if evt.KeyCode() != WXK_RETURN:
             evt.Skip()

ยทยทยท

--
Robin Dunn
Software Craftsman
http://wxPython.org Java give you jitters? Relax with wxPython!