Title: [142884] trunk/Source/WebKit/blackberry
Revision
142884
Author
[email protected]
Date
2013-02-14 09:21:28 -0800 (Thu, 14 Feb 2013)

Log Message

[BlackBerry] Update keyboard event details to match platform details.
https://bugs.webkit.org/show_bug.cgi?id=109693

Reviewed by Yong Li.

PR 220170.

When re-creating the Platform::Keyboard event ensure
all values are updated.

Reviewed Internally by Nima Ghanavatian.

* WebKitSupport/InputHandler.cpp:
(BlackBerry::WebKit::InputHandler::updateFormState):

Modified Paths

Diff

Modified: trunk/Source/WebKit/blackberry/ChangeLog (142883 => 142884)


--- trunk/Source/WebKit/blackberry/ChangeLog	2013-02-14 17:15:52 UTC (rev 142883)
+++ trunk/Source/WebKit/blackberry/ChangeLog	2013-02-14 17:21:28 UTC (rev 142884)
@@ -7,6 +7,23 @@
 
         PR 220170.
 
+        When re-creating the Platform::Keyboard event ensure
+        all values are updated.
+
+        Reviewed Internally by Nima Ghanavatian.
+
+        * WebKitSupport/InputHandler.cpp:
+        (BlackBerry::WebKit::InputHandler::updateFormState):
+
+2013-02-14  Mike Fenton  <[email protected]>
+
+        [BlackBerry] Update keyboard event details to match platform details.
+        https://bugs.webkit.org/show_bug.cgi?id=109693
+
+        Reviewed by Yong Li.
+
+        PR 220170.
+
         Update keyboard event details.
 
         Reviewed Internally by Nima Ghanavatian and Gen Mak.

Modified: trunk/Source/WebKit/blackberry/WebKitSupport/InputHandler.cpp (142883 => 142884)


--- trunk/Source/WebKit/blackberry/WebKitSupport/InputHandler.cpp	2013-02-14 17:15:52 UTC (rev 142883)
+++ trunk/Source/WebKit/blackberry/WebKitSupport/InputHandler.cpp	2013-02-14 17:21:28 UTC (rev 142884)
@@ -1705,14 +1705,14 @@
             m_shouldNotifyWebView = shouldNotifyWebView(keyboardEvent);
         }
 
-        Platform::KeyboardEvent adjustedKeyboardEvent(keyboardEvent.character(), type, adjustedModifiers);
+        Platform::KeyboardEvent adjustedKeyboardEvent(keyboardEvent.character(), type, adjustedModifiers, keyboardEvent.keycode(), keyboardEvent.alternateCharacter(), keyboardEvent.sourceDevice());
         keyboardEventHandled = focusedFrame->eventHandler()->keyEvent(PlatformKeyboardEvent(adjustedKeyboardEvent));
 
         m_shouldNotifyWebView = true;
 
         if (isKeyChar) {
             type = Platform::KeyboardEvent::KeyUp;
-            adjustedKeyboardEvent = Platform::KeyboardEvent(keyboardEvent.character(), type, adjustedModifiers);
+            adjustedKeyboardEvent = Platform::KeyboardEvent(keyboardEvent.character(), type, adjustedModifiers, keyboardEvent.keycode(), keyboardEvent.alternateCharacter(), keyboardEvent.sourceDevice());
             keyboardEventHandled = focusedFrame->eventHandler()->keyEvent(PlatformKeyboardEvent(adjustedKeyboardEvent)) || keyboardEventHandled;
         }
 
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to