<rdar://problem/5649911> REGRESSION (304-306A9): Typing 'p' in popup menu...
authorsfalken@apple.com <sfalken@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 18 Dec 2007 23:38:20 +0000 (23:38 +0000)
committersfalken@apple.com <sfalken@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 18 Dec 2007 23:38:20 +0000 (23:38 +0000)
        Need to translate the char back into a key code for posting our WM_KEYDOWN.

        Reviewed by Ada.

        * platform/win/PopupMenuWin.cpp:
        (WebCore::PopupWndProc):

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@28839 268f45cc-cd09-0410-ab3c-d52691b4dbfc

WebCore/ChangeLog
WebCore/platform/win/PopupMenuWin.cpp

index ce8ab5d6202abcfad10485ac3f78f48f57cfc83e..12578614e902b51fba51d2bcf79465a5964824a9 100644 (file)
@@ -1,3 +1,14 @@
+2007-12-18  Steve Falkenburg  <sfalken@apple.com>
+
+        <rdar://problem/5649911> REGRESSION (304-306A9): Typing 'p' in popup menu for type-to-select brings up Safari Help
+        
+        Need to translate the char back into a key code for posting our WM_KEYDOWN.
+        
+        Reviewed by Ada.
+
+        * platform/win/PopupMenuWin.cpp:
+        (WebCore::PopupWndProc):
+
 2007-12-18  Steve Falkenburg  <sfalken@apple.com>
 
         <rdar://problem/5651534> REGRESSION(r28764-r28765): GDI leak drawing text when no appropriate font is available
 2007-12-18  Steve Falkenburg  <sfalken@apple.com>
 
         <rdar://problem/5651534> REGRESSION(r28764-r28765): GDI leak drawing text when no appropriate font is available
index 6f64acf547932ca314524ec0a2655b23ec7754ad..0726caf0793e875ab0a56bc7d1a78dc034387ae4 100644 (file)
@@ -706,7 +706,7 @@ static LRESULT CALLBACK PopupWndProc(HWND hWnd, UINT message, WPARAM wParam, LPA
                             // Send a WM_KEYDOWN event and the current WM_CHAR event to the WebView
                             // so that it can perform type-to-select.
                             HWND webView = popup->client()->clientDocument()->view()->containingWindow();
                             // Send a WM_KEYDOWN event and the current WM_CHAR event to the WebView
                             // so that it can perform type-to-select.
                             HWND webView = popup->client()->clientDocument()->view()->containingWindow();
-                            ::PostMessage(webView, WM_KEYDOWN, LOWORD(wParam), lParam);
+                            ::PostMessage(webView, WM_KEYDOWN, LOBYTE(VkKeyScan(LOWORD(wParam))), lParam);
                             ::PostMessage(webView, message, wParam, lParam);
                         } else
                             lResult = 1;
                             ::PostMessage(webView, message, wParam, lParam);
                         } else
                             lResult = 1;