Ticket #4581 (closed defect: fixed)
m_uniChar not set when wxListCtrl sends key/char events
|Reported by:||xaignar||Owned by:|
In the functions
the properties of the wxKeyEvent received is manually assigned to a new wxKeyEvent, which is then processed. However, the variable m_uniChar is not so copied, with the result that wxKeyEvent object sent EVT_KEY_* and EVT_CHAR events always return 0 for GetUnicodeKey().
This can be fixed rather simply, as wxKeyEvent does implement an assignment operator which sets the appropriate properties. See the attached patch.