Index: content/shell/android/java/src/org/chromium/content_shell/Shell.java |
diff --git a/content/shell/android/java/src/org/chromium/content_shell/Shell.java b/content/shell/android/java/src/org/chromium/content_shell/Shell.java |
index 5223bfe66c4440b25eda13c2999fde6e95cdf11d..5940b5b2ad30ddcfb9ac72f06a20a9a90d9b174d 100644 |
--- a/content/shell/android/java/src/org/chromium/content_shell/Shell.java |
+++ b/content/shell/android/java/src/org/chromium/content_shell/Shell.java |
@@ -166,6 +166,16 @@ public class Shell extends LinearLayout { |
} |
} |
}); |
+ mUrlTextView.setOnKeyListener(new OnKeyListener() { |
+ @Override |
+ public boolean onKey(View v, int keyCode, KeyEvent event) { |
+ if (keyCode == KeyEvent.KEYCODE_BACK) { |
+ mContentViewCore.getContainerView().requestFocus(); |
+ return true; |
+ } |
+ return false; |
+ } |
+ }); |
} |
/** |