fix focus handling in url input
http://b/issue?id=3373046
removed focus updates from focus listener
Change-Id: I48fdb39053dce7546038022f7aee671fe97047df
diff --git a/src/com/android/browser/XLargeUi.java b/src/com/android/browser/XLargeUi.java
index 2aaa029..0fa38cf 100644
--- a/src/com/android/browser/XLargeUi.java
+++ b/src/com/android/browser/XLargeUi.java
@@ -304,7 +304,7 @@
@Override
protected void hideFakeTitleBar() {
if (isFakeTitleBarShowing()) {
- mFakeTitleBar.setUrlMode(false);
+ mFakeTitleBar.setEditMode(false);
mContentView.removeView(mFakeTitleBar);
mTabBar.onHideTitleBar();
}
@@ -417,7 +417,8 @@
return true;
}
}
- if (event.isPrintingKey() && !mFakeTitleBar.isEditingUrl()) {
+ boolean ctrl = event.hasModifiers(KeyEvent.META_CTRL_ON);
+ if (!ctrl && event.isPrintingKey() && !mFakeTitleBar.isEditingUrl()) {
editUrl(true);
return mContentView.dispatchKeyEvent(event);
}