]> git.saurik.com Git - wxWidgets.git/commitdiff
Handle Ctrl-O and Ctrl-L MSW wxWebView accelerators too.
authorVadim Zeitlin <vadim@wxwidgets.org>
Fri, 6 Apr 2012 19:51:23 +0000 (19:51 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Fri, 6 Apr 2012 19:51:23 +0000 (19:51 +0000)
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

index ddfbd362d0da550459654ddfd331126972904ff9..2bdae652c0354f58d0b9fb7913b2cd808f8923cc 100644 (file)
@@ -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