Index: third_party/WebKit/Source/core/input/KeyboardEventManager.cpp |
diff --git a/third_party/WebKit/Source/core/input/KeyboardEventManager.cpp b/third_party/WebKit/Source/core/input/KeyboardEventManager.cpp |
index c60a3ee76c308c14bd275a356f3ff12a8b1d0e67..528dcf916efcdf59b05f6395f539004620c2eff2 100644 |
--- a/third_party/WebKit/Source/core/input/KeyboardEventManager.cpp |
+++ b/third_party/WebKit/Source/core/input/KeyboardEventManager.cpp |
@@ -104,7 +104,10 @@ WebInputEventResult KeyboardEventManager::keyEvent( |
if (!node) |
return WebInputEventResult::NotHandled; |
+ // TODO(japhet): UserGestureIndicator should setHasReceivedUserGesture() |
+ // on the Document. |
UserGestureIndicator gestureIndicator(DefinitelyProcessingUserGesture); |
+ m_frame->document()->setHasReceivedUserGesture(); |
// In IE, access keys are special, they are handled after default keydown |
// processing, but cannot be canceled - this is hard to match. On Mac OS X, |