diff options
author | jcampan@chromium.org <jcampan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-02-25 00:33:08 +0000 |
---|---|---|
committer | jcampan@chromium.org <jcampan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-02-25 00:33:08 +0000 |
commit | 594840002d3d0d4052408a7db36574cb0512ede7 (patch) | |
tree | 3a61afea75a021e6410ce8113638c88cfebe490b /chrome/browser/views/tab_contents_container_view.cc | |
parent | 29d8897984da1d8948471e68c3b6514ede4f21c8 (diff) | |
download | chromium_src-594840002d3d0d4052408a7db36574cb0512ede7.zip chromium_src-594840002d3d0d4052408a7db36574cb0512ede7.tar.gz chromium_src-594840002d3d0d4052408a7db36574cb0512ede7.tar.bz2 |
This make accelerators work in interstitial pages.
Interstitial pages are RVH whose view is shown on top of the actual tab.
Some more work is required to make find in page work.
BUG=7056
TEST=Open an page that triggers an interstitial (ex: https://ebay.com), press CTRL-T, a new tab should be opened.
Review URL: http://codereview.chromium.org/21298
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@10316 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/views/tab_contents_container_view.cc')
-rw-r--r-- | chrome/browser/views/tab_contents_container_view.cc | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/chrome/browser/views/tab_contents_container_view.cc b/chrome/browser/views/tab_contents_container_view.cc index 6c8e0c3..f8261704 100644 --- a/chrome/browser/views/tab_contents_container_view.cc +++ b/chrome/browser/views/tab_contents_container_view.cc @@ -178,6 +178,10 @@ bool TabContentsContainerView::GetAccessibleRole(VARIANT* role) { bool TabContentsContainerView::ShouldLookupAccelerators( const views::KeyEvent& e) { + // Don't look-up accelerators if we are showing a non-crashed WebContents. + // We'll first give the page a chance to process the key events. If it does + // not process them, they'll be returned to us and we'll treat them as + // accelerators then. if (tab_contents_ && !tab_contents_->is_crashed() && tab_contents_->AsWebContents()) return false; |