Reviewed by Darin.
authorap@webkit.org <ap@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 2 Jan 2008 19:14:00 +0000 (19:14 +0000)
committerap@webkit.org <ap@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 2 Jan 2008 19:14:00 +0000 (19:14 +0000)
        Fix fast/events/arrow-keys-on-body.html for real.

        * DumpRenderTree/win/EventSender.cpp: (keyDownCallback): Pass proper keyData for WM_KEYUP, too.

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

WebKitTools/ChangeLog
WebKitTools/DumpRenderTree/win/EventSender.cpp

index f4a1c8e50a101d6a09e47fff48fbf6386afdcfb4..c5324b9df717a33c511bb8bb38fc4b027d3a9f30 100644 (file)
@@ -1,3 +1,11 @@
+2008-01-02  Alexey Proskuryakov  <ap@webkit.org>
+
+        Reviewed by Darin.
+
+        Fix fast/events/arrow-keys-on-body.html for real.
+
+        * DumpRenderTree/win/EventSender.cpp: (keyDownCallback): Pass proper keyData for WM_KEYUP, too.
+
 2008-01-02  Luca Bruno  <lethalman88@gmail.com>
 
         Reviewed by Darin.
index faa66c464e04fd2dbfd3a9bc1e1f63aa95fd2f83..75f7242046c2e08d93a9da29d3a79a8e682f4ccc 100644 (file)
@@ -362,7 +362,7 @@ static JSValueRef keyDownCallback(JSContextRef context, JSObjectRef function, JS
     if (::PeekMessage(&msg, webViewWindow, WM_CHAR, WM_CHAR, PM_REMOVE) || ::PeekMessage(&msg, webViewWindow, WM_SYSCHAR, WM_SYSCHAR, PM_REMOVE))
         ::DispatchMessage(&msg);
 
-    MSG msgUp = makeMsg(webViewWindow, WM_KEYUP, virtualKeyCode, 0);
+    MSG msgUp = makeMsg(webViewWindow, (::GetKeyState(VK_MENU) & 0x8000) ? WM_SYSKEYUP : WM_KEYUP, virtualKeyCode, keyData);
     ::DispatchMessage(&msgUp);
 
     if (argumentCount > 1 || needsShiftKeyModifier)