feat: toggle fullscreen with the F key on desktop - #955
Open
Ortes wants to merge 3 commits into
Open
Conversation
Ortes
added a commit
to Ortes/chewie
that referenced
this pull request
Jul 9, 2026
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## master #955 +/- ##
==========================================
+ Coverage 51.21% 57.57% +6.36%
==========================================
Files 25 25
Lines 1728 1742 +14
==========================================
+ Hits 885 1003 +118
+ Misses 843 739 -104 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
Ortes
added a commit
to Ortes/chewie
that referenced
this pull request
Aug 12, 2026
Ortes
force-pushed
the
feat/keyboard-fullscreen-toggle
branch
from
August 12, 2026 07:25
f6cceab to
5f66af9
Compare
Collaborator
|
@Ortes you'll have to fix the version conflicts that you made against the changelog for all of your PRs. Thanks. |
Add an F keyboard shortcut to the desktop controls that toggles fullscreen (respecting allowFullScreen), complementing the existing Esc-to-exit shortcut.
Ortes
force-pushed
the
feat/keyboard-fullscreen-toggle
branch
from
August 12, 2026 21:02
5f66af9 to
5249a8b
Compare
Contributor
Author
|
@diegotori Rebased onto |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
Adds an
Fkeyboard shortcut on the desktop controls (MaterialDesktopControls) that toggles fullscreen — enters if windowed, exits if fullscreen. This complements the existingEscshortcut (which only exits) and matches the convention of most desktop video players (YouTube, VLC, mpv…).How
_MaterialDesktopControlsState._handleKeyPressforLogicalKeyboardKey.keyF, calling the existing_onExpandCollapse()(which already drivesChewieController.toggleFullScreen()).chewieController.allowFullScreen, so it's a no-op when fullscreen is disabled.AdaptiveControlsroutes desktop/web platforms toMaterialDesktopControls), consistent with the existing space/arrow/Esc shortcuts.Tests
test/keyboard_fullscreen_toggle_test.dartcovers toggling fullscreen on then off with repeatedFpresses, and thatFis a no-op whenallowFullScreen: false.dart format,flutter analyze lib, and the fullflutter testsuite (with--test-randomize-ordering-seed random) are clean.