question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Toggle fullscreen when pressing `f`

See original GitHub issue

The Issue

Pressing f while watching a video doesn’t toggle fullscreen.

Steps to Reproduce

  1. Launch a video.
  2. Press f.
  3. Press f again, nothing happened.

Expected Behaviour

Fullscreen should be toggled.

Actual Behaviour

Nothing happens instead.

Suggested Solutions

Implement toggling fullscreen when pressing f.

System Configuration

  • LBRY Daemon version: 0.30.1
  • LBRY App version: 0.26.1
  • LBRY Installation ID: 9ZfMD7MUia6AAvrTDx1MzxGpsEBxUcK3mSxou2VgCFrLSYWwyNavkCTrPBpo5GoTbK
  • Operating system: Linux (Linux-4.18.0-13-lowlatency-x86_64-with-debian-buster-sid)

Anything Else

Screenshots

Internal Use

Acceptance Criteria

  1. If not in fullscreen should go into fullscreen when pressing f.
  2. If already in fullscreen, should go into window screen when pressing f.

Definition of Done

  • Tested against acceptance criteria
  • Tested against the assumptions of the user story
  • The project builds without errors
  • Unit tests are written and passing
  • Tests on devices/browsers listed in the issue have passed
  • QA performed & issues resolved
  • Refactoring completed
  • Any configuration or build changes documented
  • Documentation updated
  • Peer Code Review performed

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:7 (2 by maintainers)

github_iconTop GitHub Comments

2reactions
ngeisweicommented, Jan 3, 2019

I could take a shot, though it might take me a while given how busy I am.

Question: would it be OK if it is hardwired?

Appreciation is always welcome 😃

0reactions
neb-bcommented, Jan 3, 2019

@ngeiswei No problem.

I just meant that we need to remove the event listener when the react component leaves the page. We don’t care if a user pressed f on the settings page. We do something similar here: https://github.com/lbryio/lbry-desktop/blob/master/src/renderer/component/wunderbar/view.jsx#L39-L41

Read more comments on GitHub >

github_iconTop Results From Across the Web

What Is The Keyboard Shortcut For Making A Window Full ...
A very common shortcut, particularly for browsers, is the F11 key. It can take your screen into and out of full-screen mode quickly...
Read more >
Fullscreen not working when pressing f11 - Microsoft Community
Hello there, I'm experiencing a problem on my new laptop that when I press f11 on google, the fullscreen shortcut won't work and...
Read more >
How to Use a Shortcut and Go Full Screen - Alphr
Simply press and hold the two buttons simultaneously, and your app/game will automatically go full screen. If you want to exit the ...
Read more >
What is the keyboard shortcut for making a window full screen?
You can Press F11 to go to full screen mode and to return to normal mode again press F11.
Read more >
How to exit full-screen mode on your Windows 10 computer in ...
Press the F11 key on your computer's keyboard to exit full-screen mode. Note that pressing the key again will toggle you back to...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found