Reviewed by Richard
[WebKit-https.git] / WebKit / WebView.subproj / WebHTMLView.m
index a428f1f79e72c4fcf9624a74ce1021faa49bc80c..2eb393fc467d8731c59c88e7aba589d785b81b3a 100644 (file)
@@ -2259,7 +2259,7 @@ static WebHTMLView *lastHitView = nil;
     // at intercepting command-modified keypresses now. If this turns out to cause havoc we
     // can restrict this to only send the event through WebCore if it contains the Return or
     // Enter key.
-    if ([[self _bridge] interceptKeyEvent:event toView:self]) {
+    if ([self firstResponderIsSelfOrDescendantView] && [[self _bridge] interceptKeyEvent:event toView:self]) {
         return YES;
     }