summaryrefslogtreecommitdiffstats
path: root/chrome
diff options
context:
space:
mode:
authorsadrul@chromium.org <sadrul@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-01-20 20:56:34 +0000
committersadrul@chromium.org <sadrul@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-01-20 20:56:34 +0000
commit7672c0502c36c5ad3294c7d3860346e732fa6e79 (patch)
treea388fc9916f3ed83e0c13da1b6594ad79bec573a /chrome
parent0f384c458e3dfb582d43b010018e98aa8fd46d54 (diff)
downloadchromium_src-7672c0502c36c5ad3294c7d3860346e732fa6e79.zip
chromium_src-7672c0502c36c5ad3294c7d3860346e732fa6e79.tar.gz
chromium_src-7672c0502c36c5ad3294c7d3860346e732fa6e79.tar.bz2
touch: Request focus when a touch-sequence starts.
BUG=focusing the omnibox, then touching a textfield in a webpage shows the keyboard, but keys don't go to the textfield. TEST=see bug Review URL: http://codereview.chromium.org/6312009 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@71997 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome')
-rw-r--r--chrome/browser/renderer_host/render_widget_host_view_views.cc3
1 files changed, 3 insertions, 0 deletions
diff --git a/chrome/browser/renderer_host/render_widget_host_view_views.cc b/chrome/browser/renderer_host/render_widget_host_view_views.cc
index 24fd3d7..329c514 100644
--- a/chrome/browser/renderer_host/render_widget_host_view_views.cc
+++ b/chrome/browser/renderer_host/render_widget_host_view_views.cc
@@ -688,6 +688,9 @@ views::View::TouchStatus RenderWidgetHostViewViews::OnTouchEvent(
if (touch_event_.touchPointsLength == 1) {
// A new touch sequence has started.
status = TOUCH_STATUS_START;
+
+ // We also want the focus.
+ RequestFocus();
}
}
break;