summaryrefslogtreecommitdiffstats
path: root/chrome
diff options
context:
space:
mode:
authorfinnur@chromium.org <finnur@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-04-09 19:21:04 +0000
committerfinnur@chromium.org <finnur@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-04-09 19:21:04 +0000
commit1cb5fbed08b85c459288c98d63cf7c3158f519a2 (patch)
tree1d1de91f450d2cbfe1b0671ac94fe6d68f3eaeea /chrome
parent82e3ad374bce91eda4c84912c992925521687221 (diff)
downloadchromium_src-1cb5fbed08b85c459288c98d63cf7c3158f519a2.zip
chromium_src-1cb5fbed08b85c459288c98d63cf7c3158f519a2.tar.gz
chromium_src-1cb5fbed08b85c459288c98d63cf7c3158f519a2.tar.bz2
Find window keyboard forwarding, part 2.
Also prevent Ctrl+Home and Ctrl+End from being eaten by the Find window. Review URL: http://codereview.chromium.org/62180 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@13446 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome')
-rw-r--r--chrome/browser/views/find_bar_view.cc5
1 files changed, 5 insertions, 0 deletions
diff --git a/chrome/browser/views/find_bar_view.cc b/chrome/browser/views/find_bar_view.cc
index e5fcf4f..888c4f6 100644
--- a/chrome/browser/views/find_bar_view.cc
+++ b/chrome/browser/views/find_bar_view.cc
@@ -493,6 +493,11 @@ bool FindBarView::HandleKeystroke(views::TextField* sender, UINT message,
}
#if defined(OS_WIN)
// TODO(port): Handle this for other platforms.
+ case VK_HOME:
+ case VK_END:
+ // Ctrl+Home and Ctrl+End should be forwarded to the page.
+ if (GetKeyState(VK_CONTROL) >= 0)
+ return false; // Ctrl not pressed: Abort. Otherwise fall through.
case VK_UP:
case VK_DOWN:
case VK_PRIOR: // Page up