MicrosoftEdge / MicrosoftEdge/WebView2Feedback

Passing Alt key press to the host window in MFC/Win32

Open
#2,466 2 comments 0 reactions 1 assignee View on GitHub

@tofuandeve is already working on this.

Since May 18, 2022.

bug tracked
Dominant language
PowerShell
Stars
526
Forks
67
PR merge metrics
No merged PRs in 30d

Description

As suggested in https://github.com/MicrosoftEdge/WebView2Feedback/issues/468, I tried to get the keyboard shortcuts working in WebView 2 and most of them did work except for Alt.
Following is my code:

if (command == "IDM_ALT_PRESS")//at this point Alt key press is already captured and args->put_Handled(TRUE) is also done so that browser doesn't handle it again 
{
MainWindow()->SetFocus();
MainWindow()->PostMessage(WM_KEYDOWN, VK_MENU);
return;
}

Created this separate issue to just to track the same.

AB#39718363

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.