diff options
author | viettrungluu@chromium.org <viettrungluu@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-02-18 06:08:02 +0000 |
---|---|---|
committer | viettrungluu@chromium.org <viettrungluu@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-02-18 06:08:02 +0000 |
commit | d50455dcd50e55914aab81546502df9148c3be84 (patch) | |
tree | 4570ac44bc2e46a9ff019456f10a716a020d2245 /chrome/browser/cocoa/browser_window_controller.mm | |
parent | 87970dc239839fc987583ceb8b663dde2303ef97 (diff) | |
download | chromium_src-d50455dcd50e55914aab81546502df9148c3be84.zip chromium_src-d50455dcd50e55914aab81546502df9148c3be84.tar.gz chromium_src-d50455dcd50e55914aab81546502df9148c3be84.tar.bz2 |
Mac: allow Esc in the Omnibox to give up focus in fullscreen mode.
(Use the same "signal" as for stopping load: if we'd allow Esc to stop loading
the current page, we'll let Esc dismiss the Omnibox.)
BUG=35961
TEST=Enter fullscreen mode, Cmd-L to focus the Omnibox (and thus show it), Esc should revert to the original URL and give up focus (hiding the Omnibox). In normal, non-fullscreen mode, Esc should work as before.
Review URL: http://codereview.chromium.org/601091
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@39337 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/cocoa/browser_window_controller.mm')
-rw-r--r-- | chrome/browser/cocoa/browser_window_controller.mm | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/chrome/browser/cocoa/browser_window_controller.mm b/chrome/browser/cocoa/browser_window_controller.mm index e719987..0b43b7a 100644 --- a/chrome/browser/cocoa/browser_window_controller.mm +++ b/chrome/browser/cocoa/browser_window_controller.mm @@ -1083,6 +1083,10 @@ [toolbarController_ focusLocationBar]; } +- (void)focusTabContents { + [[self window] makeFirstResponder:[tabStripController_ selectedTabView]]; +} + - (void)layoutTabs { [tabStripController_ layoutTabs]; } |