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(macos): override performKeyEquivalent only when creating child WebView #1260

Merged
merged 1 commit into from
May 13, 2024

Conversation

pewsheen
Copy link
Contributor

Related: tauri-apps/tauri#9426

If we override the method, it cannot listen to the CMD+Key event in JavaScript.

We still need the overriding since the method always returns YES when the webview is a child webview (multi-webview), the event won't be passed the window, and the menu shortcut (like cmd+z to undo) won't be triggered. However, we should remove this when we find a solution for multi-webview.

@pewsheen pewsheen requested a review from a team as a code owner May 13, 2024 04:44
@pewsheen pewsheen merged commit 0f3c886 into dev May 13, 2024
12 checks passed
@pewsheen pewsheen deleted the fix/workaround-key-quivalent branch May 13, 2024 05:46
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