am e891a115: Merge "Only send a direction key if we are not in touch mode." into honeycomb

* commit 'e891a115a01d377dc17c0dd658ba23fb5d033e23':
  Only send a direction key if we are not in touch mode.
This commit is contained in:
Leon Scroggins
2011-01-28 10:34:14 -08:00
committed by Android Git Automerger

View File

@@ -6835,7 +6835,7 @@ public class WebView extends AbsoluteLayout
previouslyFocusedRect);
} else {
result = super.requestFocus(direction, previouslyFocusedRect);
if (mWebViewCore.getSettings().getNeedInitialFocus()) {
if (mWebViewCore.getSettings().getNeedInitialFocus() && !isInTouchMode()) {
// For cases such as GMail, where we gain focus from a direction,
// we want to move to the first available link.
// FIXME: If there are no visible links, we may not want to