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:
parent
79ebe32ef1
commit
e5f9b4ae2d
@ -1400,10 +1400,15 @@ HRESULT DocHostUIHandler::TranslateAccelerator(LPMSG lpMsg,
|
||||
//control is down?
|
||||
if((GetKeyState(VK_CONTROL) & 0x8000 ))
|
||||
{
|
||||
//skip CTRL-N, CTRL-F and CTRL-P
|
||||
if(lpMsg->wParam == 'N' || lpMsg->wParam == 'P' || lpMsg->wParam == 'F')
|
||||
//skip the accelerators used by the control
|
||||
switch(lpMsg->wParam)
|
||||
{
|
||||
return S_OK;
|
||||
case 'F':
|
||||
case 'L':
|
||||
case 'N':
|
||||
case 'O':
|
||||
case 'P':
|
||||
return S_OK;
|
||||
}
|
||||
}
|
||||
//skip F5
|
||||
|
Loading…
Reference in New Issue
Block a user