| Index: chrome/android/shell/java/src/org/chromium/chrome/shell/ChromeShellActivity.java
|
| diff --git a/chrome/android/shell/java/src/org/chromium/chrome/shell/ChromeShellActivity.java b/chrome/android/shell/java/src/org/chromium/chrome/shell/ChromeShellActivity.java
|
| index ab0f53324a519fb38e0ba3038ec04df633bd1ebb..5f34230d04079c5708059947b9a3773217c4f948 100644
|
| --- a/chrome/android/shell/java/src/org/chromium/chrome/shell/ChromeShellActivity.java
|
| +++ b/chrome/android/shell/java/src/org/chromium/chrome/shell/ChromeShellActivity.java
|
| @@ -13,6 +13,7 @@ import android.view.KeyEvent;
|
| import android.view.Menu;
|
| import android.view.MenuItem;
|
| import android.view.View;
|
| +import android.view.ViewGroup;
|
| import android.widget.Toast;
|
|
|
| import org.chromium.base.ApiCompatibilityUtils;
|
| @@ -291,6 +292,12 @@ public class ChromeShellActivity extends Activity implements AppMenuPropertiesDe
|
| @Override
|
| public boolean onOptionsItemSelected(MenuItem item) {
|
| ChromeShellTab activeTab = getActiveTab();
|
| + if (activeTab != null) {
|
| + ViewGroup containerView = activeTab.getContentViewCore().getContainerView();
|
| + if (containerView.isFocusable() && containerView.isFocusableInTouchMode()) {
|
| + containerView.requestFocus();
|
| + }
|
| + }
|
| switch (item.getItemId()) {
|
| case R.id.signin:
|
| if (ChromeSigninController.get(this).isSignedIn()) {
|
|
|