use non numpad equivalents for the numpad keys in CHAR events
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@39099 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
parent
b60978b228
commit
6121a198d3
@ -4925,7 +4925,10 @@ bool wxWindowMSW::HandleChar(WXWPARAM wParam, WXLPARAM lParam, bool isASCII)
|
||||
}
|
||||
else // we're called from WM_KEYDOWN
|
||||
{
|
||||
id = wxCharCodeMSWToWX(wParam, lParam);
|
||||
// don't pass lParam to wxCharCodeMSWToWX() here because we don't want
|
||||
// to get numpad key codes: CHAR events should use the logical keys
|
||||
// such as WXK_HOME instead of WXK_NUMPAD_HOME which is for KEY events
|
||||
id = wxCharCodeMSWToWX(wParam);
|
||||
if ( id == 0 )
|
||||
{
|
||||
// it's ASCII and will be processed here only when called from
|
||||
|
Loading…
Reference in New Issue
Block a user