Skip to content

feature: Add Fullscreen Toggle via 'F' Key Press #1822

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
roy-ayush22 opened this issue Apr 23, 2025 · 3 comments · May be fixed by #1828
Open

feature: Add Fullscreen Toggle via 'F' Key Press #1822

roy-ayush22 opened this issue Apr 23, 2025 · 3 comments · May be fixed by #1828
Labels
enhancement New feature or request

Comments

@roy-ayush22
Copy link

Is your feature request related to a problem? Please describe.
This is a feature request to add keyboard support for toggling fullscreen mode by pressing the 'F' key. This functionality is common in video players like YouTube and VLC and would enhance the user experience by enabling quick transitions into fullscreen mode.

Motivation
Currently, users must manually click the fullscreen button, which can become tedious—especially when frequently switching between applications like VS Code, Postman, and browser tabs during development or testing workflows.

Enabling a keyboard shortcut would:

  1. Improve accessibility and efficiency.

  2. Provide a smoother, more intuitive UX for power users.

  3. Align the app with modern interface standards for media-rich or immersive content.

Describe the solution you'd like
Proposed Implementation:

  1. Add a global event listener for the 'keydown' event.

  2. On detecting the 'f' key (with checks to avoid interfering with input fields), toggle fullscreen mode using the Fullscreen API.

  3. Ensure cross-browser compatibility and fallback handling.

Describe alternatives you've considered

  1. Clicking the fullscreen button manually: This works but becomes repetitive and slows down workflow, especially during multitasking or development work.

  2. Browser extensions or custom scripts: These can add the feature, but they require extra setup and aren't ideal for all users. It makes more sense to have this as a native feature of the website.

Image

@roy-ayush22 roy-ayush22 added the enhancement New feature or request label Apr 23, 2025
@roy-ayush22
Copy link
Author

@hkirat @devsargam

@Hetsavani
Copy link

I think this issue is fixed

@ghagevaibhav
Copy link

@Hetsavani No, the 'F' key doesn't work for full-screen mode or exiting it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants