diff options
Diffstat (limited to 'chrome/browser/renderer_host/render_widget_host.cc')
-rw-r--r-- | chrome/browser/renderer_host/render_widget_host.cc | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/chrome/browser/renderer_host/render_widget_host.cc b/chrome/browser/renderer_host/render_widget_host.cc index 9e196e9..36e6085 100644 --- a/chrome/browser/renderer_host/render_widget_host.cc +++ b/chrome/browser/renderer_host/render_widget_host.cc @@ -301,6 +301,8 @@ void RenderWidgetHost::ForwardMouseEvent(const WebMouseEvent& mouse_event) { return; } mouse_move_pending_ = true; + } else if (mouse_event.type == WebInputEvent::MouseDown) { + OnUserGesture(); } ForwardInputEvent(mouse_event, sizeof(WebMouseEvent)); @@ -316,7 +318,7 @@ void RenderWidgetHost::ForwardKeyboardEvent( if (key_event.type == WebKeyboardEvent::Char && (key_event.windowsKeyCode == base::VKEY_RETURN || key_event.windowsKeyCode == base::VKEY_SPACE)) { - OnEnterOrSpace(); + OnUserGesture(); } // Double check the type to make sure caller hasn't sent us nonsense that |