Coder Social home page Coder Social logo

Comments (6)

m1k1o avatar m1k1o commented on July 18, 2024

Tested on firefox now. Is visinle when you are hosting - keyboard is active:
image

Shown in the corner, but inside the screen area (such as fullscreen button and resolution button):
image

from neko.

rubydotexe avatar rubydotexe commented on July 18, 2024

I'm afraid it's still not appearing:

image

from neko.

m1k1o avatar m1k1o commented on July 18, 2024

Interesting. Do you probably have enabled some non-standard features or a different version of firefox? Did it ask you when you entered the page to enable clipboard? Beause we check if the clipboard API is available and if it is, we don't show clipboard icon. But CTRL+C and V should be working instead.

get clipboard_read_available() {
return 'clipboard' in navigator && typeof navigator.clipboard.readText === 'function'
}
get clipboard_write_available() {
return 'clipboard' in navigator && typeof navigator.clipboard.writeText === 'function'
}

Can you check in your firefox console what yields this? 'clipboard' in navigator && typeof navigator.clipboard.writeText === 'function' If that function is available for you?

from neko.

ehfd avatar ehfd commented on July 18, 2024

Possible that HTTP and non-localhost addresses block clipboards in both Chromium and Firefox. This is standard behavior.

Brave may block navigator depending on security settings even if it's not the case.

from neko.

m1k1o avatar m1k1o commented on July 18, 2024

Probably bulletproof solution would be to show clipboard button all the time. No matter if the browser supports clipboard or no.

from neko.

rubydotexe avatar rubydotexe commented on July 18, 2024

Interesting. Do you probably have enabled some non-standard features or a different version of firefox? Did it ask you when you entered the page to enable clipboard? Beause we check if the clipboard API is available and if it is, we don't show clipboard icon. But CTRL+C and V should be working instead.

get clipboard_read_available() {
return 'clipboard' in navigator && typeof navigator.clipboard.readText === 'function'
}
get clipboard_write_available() {
return 'clipboard' in navigator && typeof navigator.clipboard.writeText === 'function'
}

Can you check in your firefox console what yields this? 'clipboard' in navigator && typeof navigator.clipboard.writeText === 'function' If that function is available for you?

The value I get is true both host and neko's firefox. An update: The clipboard is now appearing now that I restarted the container again, even though it had no impact the previous times I've done it.

A nonstandard feature: I enabled add-on installation using /usr/lib/firefox/mozilla.cfg.

from neko.

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.