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

Prevent built-in screenshot tool #56

Open
AndreaLabeljoy opened this issue Mar 5, 2025 · 0 comments
Open

Prevent built-in screenshot tool #56

AndreaLabeljoy opened this issue Mar 5, 2025 · 0 comments

Comments

@AndreaLabeljoy
Copy link

AndreaLabeljoy commented Mar 5, 2025

In windows 11, using WebView2 version 1.0.3065.39, by default, the key combination CTRL+SHIFT+S pulls up the built-in screenshot tool.
This is not ideal when embedding the webview2 into a WinForms, UWP or WPF app.

I searched for a chromium flag to pass while creating a CoreWebView2EnvironmentOptions instance, but couldn't find any.

I already have AreBrowserAcceleratorKeysEnabled set to false, and it works for everything else.
ChatGPT also suggests intercepting that key combination in the AcceleratorKeyPressed event, but it's not available in the WinForms implementation.

Is there any way to inhibit the tool from appearing?

Thank you.

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

No branches or pull requests

1 participant