diff --git a/src/SFML/Window/Win32/WindowImplWin32.cpp b/src/SFML/Window/Win32/WindowImplWin32.cpp index 246b4f1f..180e9010 100644 --- a/src/SFML/Window/Win32/WindowImplWin32.cpp +++ b/src/SFML/Window/Win32/WindowImplWin32.cpp @@ -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(wParam); - SendEvent(event); + if (myKeyRepeatEnabled || ((lParam & (1 << 30)) == 0)) + { + Event event; + event.Type = Event::TextEntered; + event.Text.Unicode = static_cast(wParam); + SendEvent(event); + } break; }