| Index: chrome/browser/views/find_bar_view.cc
|
| ===================================================================
|
| --- chrome/browser/views/find_bar_view.cc (revision 13620)
|
| +++ chrome/browser/views/find_bar_view.cc (working copy)
|
| @@ -479,6 +479,12 @@
|
| if (!container_->IsVisible())
|
| return false;
|
|
|
| + // TODO(port): Handle this for other platforms.
|
| + #if defined(OS_WIN)
|
| + if (container_->MaybeForwardKeystrokeToWebpage(message, key, flags))
|
| + return true; // Handled, we are done!
|
| + #endif
|
| +
|
| switch (key) {
|
| case VK_RETURN: {
|
| // Pressing Return/Enter starts the search (unless text box is empty).
|
| @@ -491,20 +497,6 @@
|
| }
|
| break;
|
| }
|
| -#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
|
| - case VK_NEXT: // Page down
|
| - container_->ForwardKeystrokeToWebpage(key);
|
| - return true; // Message has been handled. No further processing needed.
|
| -#endif
|
| }
|
|
|
| return false;
|
|
|