X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/6a0fab3a3ae4d9b7372a25e81faadeb842b9ba6f..81c9effa8462662263c3b4eac2cfae1ef5caae2c:/src/common/popupcmn.cpp?ds=inline diff --git a/src/common/popupcmn.cpp b/src/common/popupcmn.cpp index d0f204c4c9..29fdf03fc8 100644 --- a/src/common/popupcmn.cpp +++ b/src/common/popupcmn.cpp @@ -36,6 +36,7 @@ #include "wx/combobox.h" // wxComboControl #include "wx/app.h" // wxPostEvent #include "wx/log.h" + #include "wx/app.h" #endif //WX_PRECOMP #ifdef __WXUNIVERSAL__ @@ -303,6 +304,10 @@ bool wxPopupTransientWindow::ProcessLeftDown(wxMouseEvent& WXUNUSED(event)) // wxPopupComboWindow // ---------------------------------------------------------------------------- +BEGIN_EVENT_TABLE(wxPopupComboWindow, wxPopupTransientWindow) + EVT_KEY_DOWN(wxPopupComboWindow::OnKeyDown) +END_EVENT_TABLE() + wxPopupComboWindow::wxPopupComboWindow(wxComboControl *parent) : wxPopupTransientWindow(parent) { @@ -340,6 +345,11 @@ void wxPopupComboWindow::OnDismiss() m_combo->OnDismiss(); } +void wxPopupComboWindow::OnKeyDown(wxKeyEvent& event) +{ + m_combo->ProcessEvent(event); +} + #endif // wxUSE_COMBOBOX && defined(__WXUNIVERSAL__) // ----------------------------------------------------------------------------