fixed key event code for ASCII keys in wxListCtrl

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@12383 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin 2001-11-11 20:39:28 +00:00
parent 7bfc22f614
commit 185d0094f8

View File

@ -1694,7 +1694,11 @@ bool wxListCtrl::MSWOnNotify(int idCtrl, WXLPARAM lParam, WXLPARAM *result)
else
{
eventType = wxEVT_COMMAND_LIST_KEY_DOWN;
event.m_code = wxCharCodeMSWToWX(wVKey);
// wxCharCodeMSWToWX() returns 0 if the key is an ASCII
// value which should be used as is
int code = wxCharCodeMSWToWX(wVKey);
event.m_code = code ? code : wVKey;
}
event.m_itemIndex =