diff --git a/include/SFML/Window/Event.hpp b/include/SFML/Window/Event.hpp index e294cc0e2..2b6d56f63 100644 --- a/include/SFML/Window/Event.hpp +++ b/include/SFML/Window/Event.hpp @@ -223,7 +223,7 @@ public : /// window.Close(); /// /// // The escape key was pressed -/// if ((event.Type == sf::Event::KeyPressed) && (event.Key.Code == sf::Key::Escape)) +/// if ((event.Type == sf::Event::KeyPressed) && (event.Key.Code == sf::Keyboard::Escape)) /// window.Close(); /// /// // The window was resized