summaryrefslogtreecommitdiffstats
path: root/chrome/browser/autocomplete/autocomplete_edit_view_win.cc
diff options
context:
space:
mode:
authorukai@chromium.org <ukai@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-04-29 04:57:24 +0000
committerukai@chromium.org <ukai@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-04-29 04:57:24 +0000
commitd14954e8faefd5bcb453ec13709dc5d4f143021a (patch)
treec5a4251279441d016373579c8b23d5d890e4867a /chrome/browser/autocomplete/autocomplete_edit_view_win.cc
parent31050e9e95d4270484885e2c76d80c7d5829c42c (diff)
downloadchromium_src-d14954e8faefd5bcb453ec13709dc5d4f143021a.zip
chromium_src-d14954e8faefd5bcb453ec13709dc5d4f143021a.tar.gz
chromium_src-d14954e8faefd5bcb453ec13709dc5d4f143021a.tar.bz2
Support PgUp/PgDn in Omnibox for "first entry/last entry"
BUG=6857 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@14827 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/autocomplete/autocomplete_edit_view_win.cc')
-rw-r--r--chrome/browser/autocomplete/autocomplete_edit_view_win.cc9
1 files changed, 6 insertions, 3 deletions
diff --git a/chrome/browser/autocomplete/autocomplete_edit_view_win.cc b/chrome/browser/autocomplete/autocomplete_edit_view_win.cc
index 95a71b9..a51dbaa 100644
--- a/chrome/browser/autocomplete/autocomplete_edit_view_win.cc
+++ b/chrome/browser/autocomplete/autocomplete_edit_view_win.cc
@@ -1649,14 +1649,17 @@ bool AutocompleteEditViewWin::OnKeyDownOnlyWritable(TCHAR key,
NEW_FOREGROUND_TAB : CURRENT_TAB, false);
return true;
- case VK_UP:
- count = -count;
+ case VK_PRIOR:
+ case VK_NEXT:
+ count = model_->result().size();
// FALL THROUGH
+ case VK_UP:
case VK_DOWN:
if (flags & KF_ALTDOWN)
return false;
- model_->OnUpOrDownKeyPressed(count);
+ model_->OnUpOrDownKeyPressed(((key == VK_PRIOR) || (key == VK_UP)) ?
+ -count : count);
return true;
// Hijacking Editing Commands