Skip to content

Send Input Key #4505

Open
Open
@ajtruckle

Description

@ajtruckle

Describe the feature/enhancement you need

The WebView2 control is hosted on a CDialog.

Whilst the control can detect hot keys and let us redirect them to the parent, the reverse is not possible.

The scenario/use case where you would use this feature

If my dialog has focus then it eats up the webview2 hotkey. I have to click into the control and the use the hotkey.

How important is this request to you?

Impactful. My app's user experience would be significantly compromised without it.

Suggested implementation

I tried programmatically setting focus to the control and using SetInput. Does nothing.

Can we please have a simple SendKeyValue that relays to webview2 to perform a default hotkey action.

What does your app do? Is there a pending deadline for this request?

No response

Metadata

Metadata

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions