Fixed wxMSW's EVT_CHAR so it conforms to the docs and also what wxGTK

does already.  IOW, Ctrl-C should result in keycode == 3, not 99.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@16512 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Robin Dunn
2002-08-14 21:22:43 +00:00
parent db70a2f20a
commit ad9f1aec63

View File

@@ -4303,7 +4303,9 @@ bool wxWindowMSW::HandleChar(WXWPARAM wParam, WXLPARAM lParam, bool isASCII)
int id;
if ( isASCII )
{
// If 1 -> 26, translate to CTRL plus a letter.
// If 1 -> 26, translate to either special keycode or just set
// ctrlDown. IOW, Ctrl-C should result in keycode == 3 and
// ControlDown() == TRUE.
id = wParam;
if ( (id > 0) && (id < 27) )
{
@@ -4323,7 +4325,7 @@ bool wxWindowMSW::HandleChar(WXWPARAM wParam, WXLPARAM lParam, bool isASCII)
default:
ctrlDown = TRUE;
id = id + 'a' - 1;
break;
}
}
}