How to detect for cmd+c (copy) in WebView #13884
Unanswered
simonh1000
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I'm a frontend developer trying to port accross an app that works in the browser.
This is how we start the WebView for our app
The app detects for cmd+c presses but, unlike in the browser, these never seem to occur in Tauri.
I found a work around using
document.addEventListener("copy", ....)
which got me a bit further, but we have a part of a the UI which use divs withtabIndex
and only when these are 'focused' should the copy event fire. The top down "copy" event listener cannot really catch the nuance of whether an element is in focus.Maybe I can do more to keep track of what is focused, but the real issue is simply that cmd+c is not detectable in Tauri and perhaps there is a fix for that?
Beta Was this translation helpful? Give feedback.
All reactions