aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authordec05eba <dec05eba@protonmail.com>2020-12-21 23:55:05 +0100
committerdec05eba <dec05eba@protonmail.com>2020-12-21 23:55:05 +0100
commit7a1fa42dc6bbc46f30bbe3accc9554415fc51a56 (patch)
treef1d576df255cc32a957fd6b82e1a37d3a5584b6c /src
parent147b20d53455c9ec28929eddcf43e77bc8d332eb (diff)
Ooh ooh ah ah
Diffstat (limited to 'src')
-rw-r--r--src/QuickMedia.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/QuickMedia.cpp b/src/QuickMedia.cpp
index 1191ecb..e50d08e 100644
--- a/src/QuickMedia.cpp
+++ b/src/QuickMedia.cpp
@@ -1824,6 +1824,9 @@ namespace QuickMedia {
window_size.y = event.size.height;
sf::FloatRect visible_area(0, 0, window_size.x, window_size.y);
window.setView(sf::View(visible_area));
+ } else if(event.type == sf::Event::KeyPressed && event.key.code == sf::Keyboard::Escape) {
+ // To be able to close the video player while the video is loading
+ current_page = previous_page;
}
}