When handling accelerators in wxWebView make sure that we do not block right-alt which can be mapped to alt + ctrl.
Fixes #14974. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@73381 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
parent
2798df594d
commit
4ed85025f3
@ -1620,8 +1620,10 @@ HRESULT wxSTDCALL DocHostUIHandler::TranslateAccelerator(LPMSG lpMsg,
|
||||
{
|
||||
if(lpMsg && lpMsg->message == WM_KEYDOWN)
|
||||
{
|
||||
//control is down?
|
||||
if((GetKeyState(VK_CONTROL) & 0x8000 ))
|
||||
// check control is down but that it isn't right-alt which is mapped to
|
||||
// alt + ctrl
|
||||
if(GetKeyState(VK_CONTROL) & 0x8000 &&
|
||||
!(GetKeyState(VK_MENU) & 0x8000))
|
||||
{
|
||||
//skip the accelerators used by the control
|
||||
switch(lpMsg->wParam)
|
||||
|
Loading…
Reference in New Issue
Block a user