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:
parent
7bfc22f614
commit
185d0094f8
@ -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 =
|
||||
|
Loading…
Reference in New Issue
Block a user