Index: chrome/browser/ui/browser.cc |
diff --git a/chrome/browser/ui/browser.cc b/chrome/browser/ui/browser.cc |
index e1b9c58f35c53810d28882f502a2d578e9c4d3d9..0230b906d8290a93be0a347f73c7e64b4efb8973 100644 |
--- a/chrome/browser/ui/browser.cc |
+++ b/chrome/browser/ui/browser.cc |
@@ -3700,6 +3700,11 @@ void Browser::ViewSourceForFrame(TabContents* source, |
bool Browser::PreHandleKeyboardEvent(const NativeWebKeyboardEvent& event, |
bool* is_keyboard_shortcut) { |
+ // Escape exits tabbed fullscreen mode. |
+ if (event.windowsKeyCode == 27 && tab_caused_fullscreen_) { |
+ ExitTabbedFullscreenModeIfNecessary(); |
+ return true; |
+ } |
return window()->PreHandleKeyboardEvent(event, is_keyboard_shortcut); |
} |