Commit 7672c050 authored by sadrul@chromium.org's avatar sadrul@chromium.org

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
parent 0f384c45
...@@ -688,6 +688,9 @@ views::View::TouchStatus RenderWidgetHostViewViews::OnTouchEvent( ...@@ -688,6 +688,9 @@ views::View::TouchStatus RenderWidgetHostViewViews::OnTouchEvent(
if (touch_event_.touchPointsLength == 1) { if (touch_event_.touchPointsLength == 1) {
// A new touch sequence has started. // A new touch sequence has started.
status = TOUCH_STATUS_START; status = TOUCH_STATUS_START;
// We also want the focus.
RequestFocus();
} }
} }
break; break;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment