summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorgarykac@chromium.org <garykac@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-03-20 21:22:10 +0000
committergarykac@chromium.org <garykac@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-03-20 21:22:10 +0000
commit68676967f497486add7d0f6f60a8235a51f1cac8 (patch)
treed04b7a3ddc3c6c0242871ee1ed29ee7437cfe042
parent1dd25b35d9139b4f53d145aabf4c003086fd00fa (diff)
downloadchromium_src-68676967f497486add7d0f6f60a8235a51f1cac8.zip
chromium_src-68676967f497486add7d0f6f60a8235a51f1cac8.tar.gz
chromium_src-68676967f497486add7d0f6f60a8235a51f1cac8.tar.bz2
Don't filter shortcut keys when a tab is opened in app mode (aka: windowed or pop-up mode).
Currently, certain browser shortcut keys (ctrl-w/n/t) are not sent to the page. This is done to avoid issues with loading the page and waiting for a response before being able to handle the important shortcuts. This change removes that filtering *iff* the page is app mode (right-click and "Open as Window" from the "New Tab" page). BUG=84332 TEST=none Review URL: http://codereview.chromium.org/9701108 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@127787 0039d316-1c4b-4281-b951-d872f2087c98
-rw-r--r--chrome/browser/ui/browser.cc4
1 files changed, 4 insertions, 0 deletions
diff --git a/chrome/browser/ui/browser.cc b/chrome/browser/ui/browser.cc
index 32c59d2..5199768 100644
--- a/chrome/browser/ui/browser.cc
+++ b/chrome/browser/ui/browser.cc
@@ -2976,6 +2976,10 @@ bool Browser::IsReservedCommandOrKey(int command_id,
}
#endif
+ // In Apps mode, no keys are reserved.
+ if (is_app())
+ return false;
+
if (window_->IsFullscreen() && command_id == IDC_FULLSCREEN)
return true;
return command_id == IDC_CLOSE_TAB ||