[ 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:
@@ -263,6 +263,9 @@ bool wxComboBox::MSWProcessEditMsg(WXUINT msg, WXWPARAM wParam, WXLPARAM lParam)
|
|||||||
// when Enter is pressed
|
// when Enter is pressed
|
||||||
if ( wParam == VK_RETURN )
|
if ( wParam == VK_RETURN )
|
||||||
{
|
{
|
||||||
|
if (SendMessage(GetHwnd(), CB_GETDROPPEDSTATE, 0, 0))
|
||||||
|
return false;
|
||||||
|
|
||||||
wxCommandEvent event(wxEVT_COMMAND_TEXT_ENTER, m_windowId);
|
wxCommandEvent event(wxEVT_COMMAND_TEXT_ENTER, m_windowId);
|
||||||
|
|
||||||
const int sel = GetSelection();
|
const int sel = GetSelection();
|
||||||
|
Reference in New Issue
Block a user