suppress annoying beeps when enter is pressed in combobox and there is no default button
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@31029 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -270,7 +270,13 @@ bool wxComboBox::MSWProcessEditMsg(WXUINT msg, WXWPARAM wParam, WXLPARAM lParam)
|
||||
InitCommandEvent(event);
|
||||
event.SetString(GetValue());
|
||||
event.SetInt(GetSelection());
|
||||
ProcessCommand(event);
|
||||
if ( ProcessCommand(event) )
|
||||
{
|
||||
// don't let the event through to the native control
|
||||
// because it doesn't need it and may generate an annoying
|
||||
// beep if it gets it
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
||||
return HandleChar(wParam, lParam, true /* isASCII */);
|
||||
|
Reference in New Issue
Block a user