diff options
author | suzhe@chromium.org <suzhe@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-07-14 07:35:30 +0000 |
---|---|---|
committer | suzhe@chromium.org <suzhe@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-07-14 07:35:30 +0000 |
commit | 9473a8d2db6780ecac153c65ba8200cdb0eeb1bd (patch) | |
tree | 3a3d0cc9ae25fafd9551689926e3bf13e7e4c985 | |
parent | 84d62a3b9c86376079352ab97bd9c35e067b6a70 (diff) | |
download | chromium_src-9473a8d2db6780ecac153c65ba8200cdb0eeb1bd.zip chromium_src-9473a8d2db6780ecac153c65ba8200cdb0eeb1bd.tar.gz chromium_src-9473a8d2db6780ecac153c65ba8200cdb0eeb1bd.tar.bz2 |
[chromeos]Allow input method can get tab key when inputting in omnibox.
BUG=http://crosbug.com/4552
TEST=See the bug report.
Review URL: http://codereview.chromium.org/2925009
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@52287 0039d316-1c4b-4281-b951-d872f2087c98
-rw-r--r-- | chrome/browser/views/location_bar/location_bar_view.cc | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/chrome/browser/views/location_bar/location_bar_view.cc b/chrome/browser/views/location_bar/location_bar_view.cc index 781d082..8ed874d 100644 --- a/chrome/browser/views/location_bar/location_bar_view.cc +++ b/chrome/browser/views/location_bar/location_bar_view.cc @@ -885,9 +885,10 @@ bool LocationBarView::SkipDefaultKeyEventProcessing(const views::KeyEvent& e) { // TODO(jcampan): We need to refactor the code of // AutocompleteEditViewWin::SkipDefaultKeyEventProcessing into this class so // it can be shared between Windows and Linux. - // For now, we just override back-space as it is the accelerator for back - // navigation. - if (e.GetKeyCode() == base::VKEY_BACK) + // For now, we just override back-space and tab keys, as back-space is the + // accelerator for back navigation and tab key is used by some input methods. + if (e.GetKeyCode() == base::VKEY_BACK || + views::FocusManager::IsTabTraversalKeyEvent(e)) return true; return false; #endif |