Title: [114024] trunk/Source/WebCore
Revision
114024
Author
[email protected]
Date
2012-04-12 13:23:30 -0700 (Thu, 12 Apr 2012)

Log Message

Allow certain Char events in fullscreen
https://bugs.webkit.org/show_bug.cgi?id=83330

Patch by Cem Kocagil <[email protected]> on 2012-04-12
Reviewed by Alexey Proskuryakov.

* page/EventHandler.cpp:
(WebCore::EventHandler::isKeyEventAllowedInFullScreen):

Modified Paths

Diff

Modified: trunk/Source/WebCore/ChangeLog (114023 => 114024)


--- trunk/Source/WebCore/ChangeLog	2012-04-12 20:04:06 UTC (rev 114023)
+++ trunk/Source/WebCore/ChangeLog	2012-04-12 20:23:30 UTC (rev 114024)
@@ -1,3 +1,13 @@
+2012-04-12  Cem Kocagil  <[email protected]>
+
+        Allow certain Char events in fullscreen
+        https://bugs.webkit.org/show_bug.cgi?id=83330
+
+        Reviewed by Alexey Proskuryakov.
+
+        * page/EventHandler.cpp:
+        (WebCore::EventHandler::isKeyEventAllowedInFullScreen):
+
 2012-04-12  Alec Flett  <[email protected]>
 
         IndexedDB: Attributes for a cursor "run past the end" should be undefined.

Modified: trunk/Source/WebCore/page/EventHandler.cpp (114023 => 114024)


--- trunk/Source/WebCore/page/EventHandler.cpp	2012-04-12 20:04:06 UTC (rev 114023)
+++ trunk/Source/WebCore/page/EventHandler.cpp	2012-04-12 20:23:30 UTC (rev 114024)
@@ -2725,6 +2725,13 @@
     if (document->webkitFullScreenKeyboardInputAllowed())
         return true;
 
+    if (keyEvent.type() == PlatformKeyboardEvent::Char) {
+        if (keyEvent.text().length() != 1)
+            return false;
+        UChar character = keyEvent.text()[0];
+        return character == ' ';
+    }
+
     int keyCode = keyEvent.windowsVirtualKeyCode();
     return (keyCode >= VK_BACK && keyCode <= VK_CAPITAL)
         || (keyCode >= VK_SPACE && keyCode <= VK_DELETE)
_______________________________________________
webkit-changes mailing list
[email protected]
http://lists.webkit.org/mailman/listinfo.cgi/webkit-changes

Reply via email to