git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@14698
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
// notify the combo here
virtual void OnDismiss();
// notify the combo here
virtual void OnDismiss();
+ // forward the key presses to the combobox
+ void OnKeyDown(wxKeyEvent& event);
+
// the parent combobox
wxComboControl *m_combo;
// the parent combobox
wxComboControl *m_combo;
DECLARE_DYNAMIC_CLASS(wxPopupComboWindow)
};
DECLARE_DYNAMIC_CLASS(wxPopupComboWindow)
};
// wxPopupComboWindow
// ----------------------------------------------------------------------------
// wxPopupComboWindow
// ----------------------------------------------------------------------------
+BEGIN_EVENT_TABLE(wxPopupComboWindow, wxPopupTransientWindow)
+ EVT_KEY_DOWN(wxPopupComboWindow::OnKeyDown)
+END_EVENT_TABLE()
+
wxPopupComboWindow::wxPopupComboWindow(wxComboControl *parent)
: wxPopupTransientWindow(parent)
{
wxPopupComboWindow::wxPopupComboWindow(wxComboControl *parent)
: wxPopupTransientWindow(parent)
{
+void wxPopupComboWindow::OnKeyDown(wxKeyEvent& event)
+{
+ m_combo->ProcessEvent(event);
+}
+
#endif // wxUSE_COMBOBOX && defined(__WXUNIVERSAL__)
// ----------------------------------------------------------------------------
#endif // wxUSE_COMBOBOX && defined(__WXUNIVERSAL__)
// ----------------------------------------------------------------------------