Improve handing of the enter key in wxComboBox control

* Copy-paste the code for OnChar in the wxTextCtrl.
* This implements two features:
  1. This adds support for the wxTE_PROCESS_ENTER style.
  2. Support for pressing the default button in a dialog if there is one.
This commit is contained in:
fuscated
2019-04-27 21:49:14 +03:00
committed by Stefan Csomor
parent 3d65840f8f
commit 158288cb35
2 changed files with 50 additions and 0 deletions

View File

@@ -131,6 +131,7 @@ protected:
virtual void EnableTextChangedEvents(bool enable) wxOVERRIDE;
// callbacks
void OnChar(wxKeyEvent& event); // Process 'enter' if required
void OnKeyDown(wxKeyEvent& event); // Process clipboard shortcuts
// the subcontrols