From 1c0be54a98e2f801e8fa22c01aac83e36485eee4 Mon Sep 17 00:00:00 2001 From: "pkasting@chromium.org" Date: Fri, 29 May 2009 00:07:24 +0000 Subject: 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 --- chrome/browser/autocomplete/autocomplete_edit_view_win.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'chrome') 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)) ? -- cgit v1.1