Git Product home page Git Product logo

Comments (2)

craigfrancis avatar craigfrancis commented on September 6, 2024

This is the differences between the messages on Chrome, as of Beta 68:

press-esc

I don't think many people will see the difference (if they are used to the old message), or will remember what to do (if they are new to full screen web pages).

from keyboard-lock.

craigfrancis avatar craigfrancis commented on September 6, 2024

Just as a note on the Chrome implementation from Dominick Ng...

  1. It re-shows the "Press and hold [esc] to exit full screen" message when pressing the [esc] key multiple times.

  2. An "X" icon/button appears at the top of the screen after holding the [esc] key for 1000ms.

I like the first one, but believe the second should be improved as bit... get it to fade in at 250ms (1 second is far too long), and have it show a progress bar of some kind (so users know something is happening)... something like this rough/ugly screenshot:

progress-bar


That said... I'm still not convinced "webkitRequestFullscreen()" should be callable by the website, I'd much rather have the green dot (on MacOS) and a global shortcut (e.g. ctrl+cmd+F) be the only way to trigger full screen mode (i.e. part of the standard browser UI), where developers can register for a fullscreen event that allows them to specify which element on the page should be made full screen.

And... why do "games, editors, and remote desktop clients" within a web browser specifically need the Esc key... surely even vim can map that one key to something else (this keyboard lock feature basically allows the website developers to choose any other key)... I can't imagine this single key mapping will be so important to developers that it stops them making these things available on the web (I think the use of ctrl/cmd/alt/tab are more relevant).

from keyboard-lock.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.