Update migration.md

Fixing KeyPresssed typo
This commit is contained in:
Michał Zawiślak 2024-10-25 16:28:56 +02:00 committed by Lukas Dürrenberger
parent 18eb48b13e
commit aef34af556

View File

@ -131,7 +131,7 @@ const auto onClose = [&window](const sf::Event::Closed&)
window.close(); window.close();
}; };
const auto onKeyPressed = [&window](const sf::Event::KeyPresssed& keyPressed) const auto onKeyPressed = [&window](const sf::Event::KeyPressed& keyPressed)
{ {
if (keyPressed.scancode == sf::Keyboard::Scancode::Escape) if (keyPressed.scancode == sf::Keyboard::Scancode::Escape)
window.close(); window.close();