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

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