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:
@@ -1694,7 +1694,11 @@ bool wxListCtrl::MSWOnNotify(int idCtrl, WXLPARAM lParam, WXLPARAM *result)
|
|||||||
else
|
else
|
||||||
{
|
{
|
||||||
eventType = wxEVT_COMMAND_LIST_KEY_DOWN;
|
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 =
|
event.m_itemIndex =
|
||||||
|
Reference in New Issue
Block a user