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:
parent
49b97bb09a
commit
78850be8df
@ -745,10 +745,13 @@ void WindowImplWin32::ProcessEvent(UINT Message, WPARAM WParam, LPARAM LParam)
|
|||||||
// Text event
|
// Text event
|
||||||
case WM_CHAR :
|
case WM_CHAR :
|
||||||
{
|
{
|
||||||
Event Evt;
|
if (myKeyRepeatEnabled || ((LParam & (1 << 30)) == 0))
|
||||||
Evt.Type = Event::TextEntered;
|
{
|
||||||
Evt.Text.Unicode = static_cast<Uint32>(WParam);
|
Event Evt;
|
||||||
SendEvent(Evt);
|
Evt.Type = Event::TextEntered;
|
||||||
|
Evt.Text.Unicode = static_cast<Uint32>(WParam);
|
||||||
|
SendEvent(Evt);
|
||||||
|
}
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user