FS#134 - Fix Event::TextEntered ignoring the key repeat state

git-svn-id: https://sfml.svn.sourceforge.net/svnroot/sfml/trunk@1254 4e206d99-4929-0410-ac5d-dfc041789085
This commit is contained in:
LaurentGom 2009-10-31 16:24:10 +00:00
parent 49b97bb09a
commit 78850be8df

View File

@ -744,11 +744,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 Evt; Event Evt;
Evt.Type = Event::TextEntered; Evt.Type = Event::TextEntered;
Evt.Text.Unicode = static_cast<Uint32>(WParam); Evt.Text.Unicode = static_cast<Uint32>(WParam);
SendEvent(Evt); SendEvent(Evt);
}
break; break;
} }