From e5f9b4ae2df3a334ede364f0c8131f7d7667b66f Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Fri, 6 Apr 2012 19:51:23 +0000 Subject: [PATCH] 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 --- src/msw/webview_ie.cpp | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/src/msw/webview_ie.cpp b/src/msw/webview_ie.cpp index ddfbd362d0..2bdae652c0 100644 --- a/src/msw/webview_ie.cpp +++ b/src/msw/webview_ie.cpp @@ -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 -- 2.47.2