Synchronized with trunk

git-svn-id: https://sfml.svn.sourceforge.net/svnroot/sfml/branches/sfml2@1255 4e206d99-4929-0410-ac5d-dfc041789085
This commit is contained in:
LaurentGom 2009-10-31 18:49:31 +00:00
commit 472627f65f

View File

@ -468,10 +468,13 @@ void WindowImplWin32::ProcessEvent(UINT message, WPARAM wParam, LPARAM lParam)
// Text event
case WM_CHAR :
{
Event event;
event.Type = Event::TextEntered;
event.Text.Unicode = static_cast<Uint32>(wParam);
SendEvent(event);
if (myKeyRepeatEnabled || ((lParam & (1 << 30)) == 0))
{
Event event;
event.Type = Event::TextEntered;
event.Text.Unicode = static_cast<Uint32>(wParam);
SendEvent(event);
}
break;
}