summaryrefslogtreecommitdiffstats
path: root/chrome
diff options
context:
space:
mode:
authortc@google.com <tc@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2009-08-11 23:01:42 +0000
committertc@google.com <tc@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2009-08-11 23:01:42 +0000
commitfc55687c1b673672c7e7e55fb0aa8e506d416fb4 (patch)
tree23acb5d2ad7577e399ce8ba34485d5e304178d85 /chrome
parent3a06f1271e10bdc01dfc30da57501e65231456fa (diff)
downloadchromium_src-fc55687c1b673672c7e7e55fb0aa8e506d416fb4.zip
chromium_src-fc55687c1b673672c7e7e55fb0aa8e506d416fb4.tar.gz
chromium_src-fc55687c1b673672c7e7e55fb0aa8e506d416fb4.tar.bz2
Don't focus the location bar if we're in full screen mode.
I originally tried to set the GTK_CAN_FOCUS flag on the autocomplete edit text_view, but that requires plumbing a method through BrowserToolbar, LocationBarGtk, and AutocompleteEditViewGtk. This is easier. Since the widget is already hidden, it's not in the tab order so other than explicit calls in code, it's not possible to give the gtk text view focus. BUG=14945 Review URL: http://codereview.chromium.org/164342 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@23105 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome')
-rw-r--r--chrome/browser/gtk/browser_window_gtk.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/chrome/browser/gtk/browser_window_gtk.cc b/chrome/browser/gtk/browser_window_gtk.cc
index bfea291..fe14c93 100644
--- a/chrome/browser/gtk/browser_window_gtk.cc
+++ b/chrome/browser/gtk/browser_window_gtk.cc
@@ -850,7 +850,8 @@ LocationBar* BrowserWindowGtk::GetLocationBar() const {
}
void BrowserWindowGtk::SetFocusToLocationBar() {
- GetLocationBar()->FocusLocation();
+ if (!IsFullscreen())
+ GetLocationBar()->FocusLocation();
}
void BrowserWindowGtk::UpdateStopGoState(bool is_loading, bool force) {