diff --git a/src/SFML/Window/Win32/WindowImplWin32.cpp b/src/SFML/Window/Win32/WindowImplWin32.cpp index 91487745..c670a764 100644 --- a/src/SFML/Window/Win32/WindowImplWin32.cpp +++ b/src/SFML/Window/Win32/WindowImplWin32.cpp @@ -745,10 +745,13 @@ void WindowImplWin32::ProcessEvent(UINT Message, WPARAM WParam, LPARAM LParam) // Text event case WM_CHAR : { - Event Evt; - Evt.Type = Event::TextEntered; - Evt.Text.Unicode = static_cast(WParam); - SendEvent(Evt); + if (myKeyRepeatEnabled || ((LParam & (1 << 30)) == 0)) + { + Event Evt; + Evt.Type = Event::TextEntered; + Evt.Text.Unicode = static_cast(WParam); + SendEvent(Evt); + } break; }