Fix Windows build after r42190.
authormrowe@apple.com <mrowe@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 3 Apr 2009 01:01:45 +0000 (01:01 +0000)
committermrowe@apple.com <mrowe@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 3 Apr 2009 01:01:45 +0000 (01:01 +0000)
* page/EventHandler.cpp:
(WebCore::EventHandler::keyEvent):  Update to use the new name of the constant.

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

WebCore/ChangeLog
WebCore/page/EventHandler.cpp

index 554cdb4..0a95138 100644 (file)
@@ -1,3 +1,10 @@
+2009-04-02  Mark Rowe  <mrowe@apple.com>
+
+        Fix Windows build after r42190.
+
+        * page/EventHandler.cpp:
+        (WebCore::EventHandler::keyEvent):  Update to use the new name of the constant.
+
 2009-04-02  Darin Adler  <darin@apple.com>
 
         Reviewed by Brady Eidson.
index 1f52c94..f81c888 100644 (file)
@@ -1860,7 +1860,7 @@ bool EventHandler::keyEvent(const PlatformKeyboardEvent& initialKeyEvent)
             static const char* const escapeKeyIdentifier = "U+001B";
 
             // If a key is pressed while the autoscroll/panScroll is in progress then we want to stop
-            if (initialKeyEvent.keyIdentifier() == escKeyId && initialKeyEvent.type() == PlatformKeyboardEvent::KeyUp) 
+            if (initialKeyEvent.keyIdentifier() == escapeKeyIdentifier && initialKeyEvent.type() == PlatformKeyboardEvent::KeyUp) 
                 stopAutoscrollTimer();
 
             // If we were in autoscroll/panscroll mode, we swallow the key event