You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I try to enable access to the clipboard for an App and always run into the browser saveguards to not give the browser unfetted access to the clipboard. For Webapplications this makes sense. In my use case I just wanto to use the renderer to have a plattform independent GUI and don't load further content.
Would it be possible to have an additional Option in the webview.settings like ALLOW_CLIPBOARD_READ ? Then the app could access the clipboard through the navigator.Clipboard API even without user interaction.
I testet some Options on the plattforms I have access to:
Specification
Description
I try to enable access to the clipboard for an App and always run into the browser saveguards to not give the browser unfetted access to the clipboard. For Webapplications this makes sense. In my use case I just wanto to use the renderer to have a plattform independent GUI and don't load further content.
Would it be possible to have an additional Option in the webview.settings like ALLOW_CLIPBOARD_READ ? Then the app could access the clipboard through the navigator.Clipboard API even without user interaction.
I testet some Options on the plattforms I have access to:
Windows / edgechromium.py
I added an Event callback
MacOS / cocoa.py
The trick seems to be to set javaScriptCanAccessClipboard and domPasteAllowed to True:
In both cases it also eliminates the strange browser dopdown on paste (especialy irritating on MacOS)
Unfortunately I don't have a Linux/GTK test environment at the moment.
Practicalities
The text was updated successfully, but these errors were encountered: