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:
@@ -4925,7 +4925,10 @@ bool wxWindowMSW::HandleChar(WXWPARAM wParam, WXLPARAM lParam, bool isASCII)
|
|||||||
}
|
}
|
||||||
else // we're called from WM_KEYDOWN
|
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 )
|
if ( id == 0 )
|
||||||
{
|
{
|
||||||
// it's ASCII and will be processed here only when called from
|
// it's ASCII and will be processed here only when called from
|
||||||
|
Reference in New Issue
Block a user