Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: clipboard edit menu>paste not working in tauri #1238

Merged
merged 2 commits into from
Dec 13, 2023
Merged

fix: clipboard edit menu>paste not working in tauri #1238

merged 2 commits into from
Dec 13, 2023

Conversation

abose
Copy link
Member

@abose abose commented Dec 13, 2023

The issue at hand is that users are unable to perform paste actions when clicking on "Edit" menu > "Paste" or the editor context menu > "Paste" in Tauri desktop builds. This problem arises because the browser clipboard APIs are not available in Tauri, necessitating the use of Tauri's own clipboard access APIs.

Clipboard API in browser will usually popup a clipboard access popup which the user have to click agree manually. In tauri this popup never comes. So we add tauris clipboard APIs.

Add integration tests for tauri clipboard access

Integration tests for Tauri clipboard access added. It's important to note that these tests will exclusively function in the Tauri environment. Regrettably, browsers do not permit unattended clipboard access due to security considerations. As a result, the copy-paste test is disabled when running in a browser context.

@phoenixide
Copy link
Member

Thank You for making this pull request.

@phoenixide
Copy link
Member

Thank You for making this pull request.

Copy link

Quality Gate Passed Quality Gate passed

The SonarCloud Quality Gate passed, but some issues were introduced.

2 New issues
0 Security Hotspots
No data about Coverage
0.0% Duplication on New Code

See analysis details on SonarCloud

@abose abose merged commit 5bf30b1 into main Dec 13, 2023
16 checks passed
@abose abose deleted the clip branch December 13, 2023 15:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants