Doesn't work inside <webview>
teameh opened this issue · comments
Kind of the same as. parro-it/debug-menu#6 but I'm not able to fix this 😬. How could we fix this, can we get to the DOM in case of a webview ?
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...
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 :)
Try it yourself to get what I mean :)
I had... you're right.
You can put this inside a preload script for the webview and it works.