diff options
author | dmazzoni@chromium.org <dmazzoni@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-08-22 14:07:27 +0000 |
---|---|---|
committer | dmazzoni@chromium.org <dmazzoni@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-08-22 14:07:27 +0000 |
commit | e2fa1cca45ffa1aa37e94f306b2508f78408a886 (patch) | |
tree | fedbdc5ba76ccb2d85b600e782c69d9b15755d44 /chrome/browser/tab_contents | |
parent | 3854920214b4b2eb09e51f1ec98ee476f6c85ceb (diff) | |
download | chromium_src-e2fa1cca45ffa1aa37e94f306b2508f78408a886.zip chromium_src-e2fa1cca45ffa1aa37e94f306b2508f78408a886.tar.gz chromium_src-e2fa1cca45ffa1aa37e94f306b2508f78408a886.tar.bz2 |
Make on-screen keyboard not pop up when switching to a tab.
On Windows 8, the on-screen keyboard pops up when a tap occurs
inside a focused text box. The tap and the focus can occur in any
order; if a tap occurs and later a text box under the tap point
gets focused, the OSK will appear.
In addition, we fudge the algorithm by telling Windows that focused
text boxes have infinite size - that way a tap somewhere on the web
that leads to a text box getting focus will open the keyboard. This
normally makes sense, as there are often larger click targets around
smaller text boxes.
This leads to incorrect behavior when you tap on an item in the menu
and that results in switching to a tab that already has a focused text
box. Windows 8 was interpreting the tap as being on the text box and
popping-up the OSK.
With the new logic, when switching to a tab that was previously hidden,
we first only pop up the OSK if the user taps directly on a focused
text box - and as soon as focus changes within the page, we go back to
the previous behavior where any tap that focuses a text box can pop up
the OSK.
BUG=140993
TEST=Select Sign In from menu while sign in page is already open. OSK should not pop up until you click on the text field.
Review URL: https://chromiumcodereview.appspot.com/10834418
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@152766 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/tab_contents')
0 files changed, 0 insertions, 0 deletions