diff options
author | dec05eba <dec05eba@protonmail.com> | 2020-09-11 20:25:31 +0200 |
---|---|---|
committer | dec05eba <dec05eba@protonmail.com> | 2020-09-11 20:25:31 +0200 |
commit | 7dbb67cbae3fa2008c0d324fcaacbcf5d82f71a8 (patch) | |
tree | 298aeea639be07d86b9e2f4e4f6784a1b51817c7 /src | |
parent | 043b54f9d5c06257e33c9a0989158d9a99368e26 (diff) |
Allow toggling fullscreen mode when showing related videos
Diffstat (limited to 'src')
-rw-r--r-- | src/QuickMedia.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/QuickMedia.cpp b/src/QuickMedia.cpp index f6d28f8..a8788d2 100644 --- a/src/QuickMedia.cpp +++ b/src/QuickMedia.cpp @@ -1217,6 +1217,8 @@ namespace QuickMedia { related_media_window_visible = false; related_media_window->setVisible(related_media_window_visible); related_media_body->clear_thumbnails(); + } else if(event.key.code == sf::Keyboard::F && event.key.control) { + window_set_fullscreen(disp, window.getSystemHandle(), WindowFullscreenState::TOGGLE); } else if(event.key.code == sf::Keyboard::Enter) { BodyItem *selected_item = related_media_body->get_selected(); if(!selected_item) |