Adopt new API for keyboard event handling.
authorenrica@apple.com <enrica@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 12 Mar 2015 19:26:20 +0000 (19:26 +0000)
committerenrica@apple.com <enrica@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 12 Mar 2015 19:26:20 +0000 (19:26 +0000)
https://bugs.webkit.org/show_bug.cgi?id=142602
rdar://problem/19966087

Reviewed by Sam Weinig.

Adopts the new API.

* UIProcess/ios/WKContentViewInteraction.mm:
(-[WKContentView _didHandleKeyEvent:]):

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

Source/WebKit2/ChangeLog
Source/WebKit2/UIProcess/ios/WKContentViewInteraction.mm

index 534f204..ade5d86 100644 (file)
@@ -1,3 +1,16 @@
+2015-03-11  Enrica Casucci  <enrica@apple.com>
+
+        Adopt new API for keyboard event handling.
+        https://bugs.webkit.org/show_bug.cgi?id=142602
+        rdar://problem/19966087
+
+        Reviewed by Sam Weinig.
+
+        Adopts the new API.
+
+        * UIProcess/ios/WKContentViewInteraction.mm:
+        (-[WKContentView _didHandleKeyEvent:]):
+
 2015-03-12  Alexey Proskuryakov  <ap@apple.com>
 
         testRunner.setAlwaysAcceptCookies does not work with NetworkProcess
index 0b9f45a..ef2dcd7 100644 (file)
@@ -187,6 +187,7 @@ const CGFloat minimumTapHighlightRadius = 2.0;
 
 @interface UIKeyboardImpl (StagingToRemove)
 - (void)didHandleWebKeyEvent;
+- (void)didHandleWebKeyEvent:(WebIOSEvent *)event;
 - (void)deleteFromInputWithFlags:(NSUInteger)flags;
 @end
 
@@ -2415,7 +2416,9 @@ static UITextAutocapitalizationType toUITextAutocapitalize(WebAutocapitalizeType
 {
     if (event.type == WebEventKeyDown) {
         // FIXME: This is only for staging purposes.
-        if ([[UIKeyboardImpl sharedInstance] respondsToSelector:@selector(didHandleWebKeyEvent)])
+        if ([[UIKeyboardImpl sharedInstance] respondsToSelector:@selector(didHandleWebKeyEvent:)])
+            [[UIKeyboardImpl sharedInstance] didHandleWebKeyEvent:event];
+        else
             [[UIKeyboardImpl sharedInstance] didHandleWebKeyEvent];
     }
 }