tinypilot icon indicating copy to clipboard operation
tinypilot copied to clipboard

Make it harder to accidentally exit fullscreen mode

Open mtlynch opened this issue 2 years ago • 0 comments

I received a request from a customer who mentioned that in their usage, they often hit the Escape key in full screen mode, intending to send it to the target computer, but the browser captures the keystroke and interprets it as a request to exit full screen mode.

There's an experimental browser feature called keyboard.lock that seems like it does what we'd want.

https://stackoverflow.com/a/65413565/90388 https://developer.mozilla.org/en-US/docs/Web/API/Keyboard/lock https://wicg.github.io/keyboard-lock/#escape-key (specifically, how it relates to fullscreen)

However, the feature currently has several big limitations:

  • It only works over HTTPS
  • It only works in Chrome and Edge, not in Firefox or Safari
  • The feature is still experimental and may change

I'm opening this to track the feature request and see if the keyboard.lock feature matures or if we find other ways to achieve the same thing.

mtlynch avatar Jul 06 '23 14:07 mtlynch