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:
@@ -4303,7 +4303,9 @@ bool wxWindowMSW::HandleChar(WXWPARAM wParam, WXLPARAM lParam, bool isASCII)
|
|||||||
int id;
|
int id;
|
||||||
if ( isASCII )
|
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;
|
id = wParam;
|
||||||
if ( (id > 0) && (id < 27) )
|
if ( (id > 0) && (id < 27) )
|
||||||
{
|
{
|
||||||
@@ -4323,7 +4325,7 @@ bool wxWindowMSW::HandleChar(WXWPARAM wParam, WXLPARAM lParam, bool isASCII)
|
|||||||
|
|
||||||
default:
|
default:
|
||||||
ctrlDown = TRUE;
|
ctrlDown = TRUE;
|
||||||
id = id + 'a' - 1;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user