Skip to content

Prevent built-in screenshot tool #5153

Open
@AndreaLabeljoy

Description

@AndreaLabeljoy

What happened?

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.

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

I already have AreBrowserAcceleratorKeysEnabled = 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.

Importance

Moderate. My app's user experience is affected, but still usable.

Runtime Channel

Stable release (WebView2 Runtime)

Runtime Version

1.0.3065.39

SDK Version

No response

Framework

Winforms

Operating System

Windows 11

OS Version

No response

Repro steps

Press CTRL+SHIT+S

Repros in Edge Browser

No, issue does not reproduce in the corresponding Edge version

Regression

No, this never worked

Last working version (if regression)

No response

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions