MicrosoftEdge / MicrosoftEdge/WebView2Feedback
Passing Alt key press to the host window in MFC/Win32
Open
@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.
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.