[ 1557102 ] wxCombobox + keyboard selection + TEXT_ENTER Event
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@41458 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
parent
b4aec6c756
commit
a2634d8140
@ -263,6 +263,9 @@ bool wxComboBox::MSWProcessEditMsg(WXUINT msg, WXWPARAM wParam, WXLPARAM lParam)
|
||||
// when Enter is pressed
|
||||
if ( wParam == VK_RETURN )
|
||||
{
|
||||
if (SendMessage(GetHwnd(), CB_GETDROPPEDSTATE, 0, 0))
|
||||
return false;
|
||||
|
||||
wxCommandEvent event(wxEVT_COMMAND_TEXT_ENTER, m_windowId);
|
||||
|
||||
const int sel = GetSelection();
|
||||
|
Loading…
Reference in New Issue
Block a user