diff options
author | pkasting@chromium.org <pkasting@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-05-29 00:07:24 +0000 |
---|---|---|
committer | pkasting@chromium.org <pkasting@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-05-29 00:07:24 +0000 |
commit | 1c0be54a98e2f801e8fa22c01aac83e36485eee4 (patch) | |
tree | e47fe2147de53e97e7e7e759321b074ee66b11aa /chrome/browser/autocomplete | |
parent | 84c63880bf6afc3bc9c6075c807e2206db9ed59b (diff) | |
download | chromium_src-1c0be54a98e2f801e8fa22c01aac83e36485eee4.zip chromium_src-1c0be54a98e2f801e8fa22c01aac83e36485eee4.tar.gz chromium_src-1c0be54a98e2f801e8fa22c01aac83e36485eee4.tar.bz2 |
Treat alt-(arrows/pgup/pgdn) like alt was not pressed. There's no reason to ignore these keypresses.
BUG=6992
TEST=Type a letter so the omnibox dropdown shows. Press alt-down. If you used the numpad down arrow, nothing should happen (until you release both keys, then a special character might appear). If you used the standalone arrow keys, the selection should move down one row.
Review URL: http://codereview.chromium.org/115891
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@17144 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/autocomplete')
-rw-r--r-- | chrome/browser/autocomplete/autocomplete_edit_view_win.cc | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/chrome/browser/autocomplete/autocomplete_edit_view_win.cc b/chrome/browser/autocomplete/autocomplete_edit_view_win.cc index cc9aa36..25fcbf2 100644 --- a/chrome/browser/autocomplete/autocomplete_edit_view_win.cc +++ b/chrome/browser/autocomplete/autocomplete_edit_view_win.cc @@ -1665,7 +1665,8 @@ bool AutocompleteEditViewWin::OnKeyDownOnlyWritable(TCHAR key, // FALL THROUGH case VK_UP: case VK_DOWN: - if (flags & KF_ALTDOWN) + // Ignore alt + numpad, but treat alt + (non-numpad) like (non-numpad). + if ((flags & KF_ALTDOWN) && !(flags & KF_EXTENDED)) return false; model_->OnUpOrDownKeyPressed(((key == VK_PRIOR) || (key == VK_UP)) ? |