MicrosoftEdge / WebView2Feedback

Feedback and discussions about Microsoft Edge WebView2
https://aka.ms/webview2
423 stars 51 forks source link

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

Open hakzhyena opened 2 years ago

hakzhyena commented 2 years ago

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

tofuandeve commented 2 years ago

This is a known issue and currently being worked on as stated in https://github.com/MicrosoftEdge/WebView2Feedback/issues/468

hakzhyena commented 4 months ago

@tofuandeve Could you give me an update on this, please? I could see that #468 is open as well.