Handle Ctrl-O and Ctrl-L MSW wxWebView accelerators too.
Do the same thing for them as for Ctrl-N, Ctrl-F and Ctrl-P, they are also used by the control. Closes #14192. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@71123 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -1400,10 +1400,15 @@ HRESULT DocHostUIHandler::TranslateAccelerator(LPMSG lpMsg,
|
|||||||
//control is down?
|
//control is down?
|
||||||
if((GetKeyState(VK_CONTROL) & 0x8000 ))
|
if((GetKeyState(VK_CONTROL) & 0x8000 ))
|
||||||
{
|
{
|
||||||
//skip CTRL-N, CTRL-F and CTRL-P
|
//skip the accelerators used by the control
|
||||||
if(lpMsg->wParam == 'N' || lpMsg->wParam == 'P' || lpMsg->wParam == 'F')
|
switch(lpMsg->wParam)
|
||||||
{
|
{
|
||||||
return S_OK;
|
case 'F':
|
||||||
|
case 'L':
|
||||||
|
case 'N':
|
||||||
|
case 'O':
|
||||||
|
case 'P':
|
||||||
|
return S_OK;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
//skip F5
|
//skip F5
|
||||||
|
Reference in New Issue
Block a user