Giter Site home page Giter Site logo

Fullscreen option? about 0x40-web HOT 7 CLOSED

mon avatar mon commented on July 21, 2024
Fullscreen option?

from 0x40-web.

Comments (7)

mon avatar mon commented on July 21, 2024

I cannot replicate that, hitting F11 hides everything on my copy of firefox. Your mouse isn't hiding at the top of the screen, keeping them active?

from 0x40-web.

mjsir911 avatar mjsir911 commented on July 21, 2024

ah thank you for the quick response, I have browser.fullscreen.autohide set to false, which is the desired behaviour for me for all websites except yours (I like to have my tabs available when full screened on i3)

from 0x40-web.

mon avatar mon commented on July 21, 2024

Am I right in assuming the fullscreen API ignored browser.fullscreen.autohide? Seems reasonable enough, just need to pick a key for it (I don't like the idea of overloading F11 with identical behaviour, feels like something that could break)

from 0x40-web.

mjsir911 avatar mjsir911 commented on July 21, 2024

Can confirm this lil snippet of code works in the console:

// define a handler
function doc_keyUp(e) {

    // this would test for whichever key is 40 (down arrow) and the ctrl key at the same time
  console.log(e.key)
    if (e.key === 'J') {
        // call your function to do the thing
        document.body.requestFullscreen();
      console.log('hi')
    }
}
// register the handler 
document.addEventListener('keyup', doc_keyUp, false);

It's a bit unintuitive since just running document.body.requestFullscreen() from the console doesn't work because it's technically running on no user input

from 0x40-web.

mon avatar mon commented on July 21, 2024

Just to bump this issue - might be a week or 3. I've just moved and need to reassemble my dev machine.

from 0x40-web.

mjsir911 avatar mjsir911 commented on July 21, 2024

Thanks for the update! if you decide upon a sane keycode I could see what I could do to help ;-)

from 0x40-web.

mon avatar mon commented on July 21, 2024

Added as Alt+Enter, since that's commonly used for fullscreen and not actually taken by Chrome/Firefox already (yay!).
Will make a new release later, for now it's live on my site when cloudflare evicts the cache - give it 48 hours.

from 0x40-web.

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.