Add shortcuts for the combobox (select all, copy, cut, paste)

* It is the same as the code in the implementation of the wxTextCtrl, I
  guess this could be extracted in a common function, but I don't know
  where to put it.
This commit is contained in:
fuscated
2018-12-27 17:54:37 +02:00
committed by Stefan Csomor
parent 6cdf22b5dd
commit 491c131886
2 changed files with 41 additions and 0 deletions

View File

@@ -130,11 +130,17 @@ protected:
virtual void EnableTextChangedEvents(bool enable) wxOVERRIDE;
// callbacks
void OnKeyDown(wxKeyEvent& event); // Process clipboard shortcuts
// the subcontrols
wxComboBoxText* m_text;
wxComboBoxChoice* m_choice;
wxComboBoxDataArray m_datas;
private:
wxDECLARE_EVENT_TABLE();
};
#endif // _WX_COMBOBOX_H_