Giter VIP home page Giter VIP logo

Comments (4)

parro-it avatar parro-it commented on June 29, 2024

The popup menu simply uses Electron roles to do copy-paste stuff. I don't know if it handle automatically webviews. Has you tried?

Instead, we could improve the registered shortcuts. We should be able to add an (optional) elm argument to registerShortcuts method. If the user pass some webview as value, it should be forwarded all the way down to action method.

In action method, the webview methods has to be called instead of the current window ones...

from electron-input-menu.

teameh avatar teameh commented on June 29, 2024

You use the element that's being clicked to see if you should show the menu right? But since because the element is a webview, the right menu items are never showed when clicked on a input inside webview. Try it yourself to get what I mean :)

from electron-input-menu.

parro-it avatar parro-it commented on June 29, 2024

Try it yourself to get what I mean :)

I had... you're right.

from electron-input-menu.

codezomb avatar codezomb commented on June 29, 2024

You can put this inside a preload script for the webview and it works.

from electron-input-menu.

Related Issues (8)

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.