From WxWiki
Jump to navigation Jump to search

The wxBell function rings the system bell.

On Microsoft Windows, the wxBell always sounds when a user presses ENTER in any wxTextCtrl.

This is a Windows design error, but can be worked around by capturing the enter key on the EVT_KEYDOWN event, and don't call event.Skip(). That suppresses the ding.