Reviewed by Geof.
authorkmccullo <kmccullo@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 6 Dec 2006 21:46:18 +0000 (21:46 +0000)
committerkmccullo <kmccullo@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 6 Dec 2006 21:46:18 +0000 (21:46 +0000)
        - Returned the semantic meaning of the mask to be the actual repeat count,
        and changed auto_repeat to correctly differnetiate between keypressed and keydown.

        * platform/win/KeyEventWin.cpp:
        (WebCore::PlatformKeyboardEvent::PlatformKeyboardEvent):

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

WebCore/ChangeLog
WebCore/platform/win/KeyEventWin.cpp

index 3809aca138727022411dc937c62b0e75b440b47e..8f3a959d58b565c6f9d900e22ac457e554a6b6e9 100644 (file)
@@ -1,3 +1,13 @@
+2006-12-06  Kevin McCullough  <kmccullough@apple.com>
+
+        Reviewed by Geof.
+
+        - Returned the semantic meaning of the mask to be the actual repeat count,
+        and changed auto_repeat to correctly differnetiate between keypressed and keydown.
+
+        * platform/win/KeyEventWin.cpp:
+        (WebCore::PlatformKeyboardEvent::PlatformKeyboardEvent):
+
 2006-12-06  Justin Garcia  <justin.garcia@apple.com>
 
         Reviewed by harrison
@@ -87,6 +97,7 @@
         (WebCore::TypingCommand::markMisspellingsAfterTyping):
         updated for moved functions
 
+>>>>>>> .r18043
 2006-12-05  Anders Carlsson  <acarlsson@apple.com>
 
         Reviewed by Maciej.
index 148104be72e1f994c533981cc05e8f49bd2762ce..a14380e829b774e85bb7de8e93b92eaca8c56453 100644 (file)
@@ -27,7 +27,7 @@
 #include "PlatformKeyboardEvent.h"
 #include <windows.h>
 
-#define REPEAT_COUNT_MASK           0x0000FFFE
+#define REPEAT_COUNT_MASK           0x0000FFFF
 #define NEW_RELEASE_STATE_MASK      0x80000000
 #define PREVIOUS_DOWN_STATE_MASK    0x40000000
 #define ALT_KEY_DOWN_MASK           0x20000000
@@ -141,7 +141,7 @@ PlatformKeyboardEvent::PlatformKeyboardEvent(HWND hWnd, WPARAM wParam, LPARAM lP
     , m_unmodifiedText(singleCharacterString(wParam))
     , m_keyIdentifier(keyIdentifierForWindowsKeyCode(wParam))
     , m_isKeyUp((lParam & NEW_RELEASE_STATE_MASK))
-    , m_autoRepeat(lParam & REPEAT_COUNT_MASK)
+    , m_autoRepeat((lParam & REPEAT_COUNT_MASK) > 1)
     , m_WindowsKeyCode(wParam)
     , m_isKeypad(false) // FIXME
     , m_shiftKey(GetKeyState(VK_SHIFT) & HIGH_BIT_MASK_SHORT)