Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(109)

Issue 62129: Find should allow keyboard scrolling while Find bar has focus (Closed)

Created:
11 years, 8 months ago by Finnur
Modified:
9 years, 6 months ago
Reviewers:
jcampan
CC:
chromium-reviews_googlegroups.com
Visibility:
Public.

Description

When the Find bar has focus it eats keypresses such as PageUp, PageDown and Up and Down arrow keys. It doesn't need to - instead the page should scroll even if focus is on the Find bar. This patch forwards those selected keypresses to the page for its perusal. Known issues: Just like Firefox, the page doesn't scroll if it has frames. SONG=I like to fixit fixit. I like to fixit fixit. BUG=7079 TEST=Open FindInPage on a webpage that has a vertical scrollbar. Press Down, Up, PageDown and PageUp and the page should scroll accordingly. Make sure no ding is heard while doing so. Also make sure this works if focus is on a textfield/textarea when you press Ctrl+F. Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=13389

Patch Set 1 #

Patch Set 2 : '' #

Total comments: 5

Patch Set 3 : '' #

Patch Set 4 : '' #

Patch Set 5 : '' #

Patch Set 6 : '' #

Total comments: 4

Patch Set 7 : '' #

Unified diffs Side-by-side diffs Delta from patch set Stats (+190 lines, -85 lines) Patch
M chrome/browser/renderer_host/render_view_host.h View 4 5 3 chunks +5 lines, -2 lines 0 comments Download
M chrome/browser/renderer_host/render_view_host.cc View 4 5 2 chunks +5 lines, -1 line 0 comments Download
M chrome/browser/renderer_host/render_widget_host.h View 1 2 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/renderer_host/render_widget_host.cc View 1 2 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/views/bookmark_editor_view.h View 1 2 2 chunks +3 lines, -3 lines 0 comments Download
M chrome/browser/views/bookmark_manager_view.h View 1 2 2 chunks +2 lines, -2 lines 0 comments Download
M chrome/browser/views/bookmark_manager_view.cc View 1 2 3 chunks +4 lines, -2 lines 0 comments Download
M chrome/browser/views/bug_report_view.h View 1 2 3 chunks +6 lines, -6 lines 0 comments Download
M chrome/browser/views/bug_report_view.cc View 1 2 4 chunks +5 lines, -4 lines 0 comments Download
M chrome/browser/views/edit_keyword_controller.h View 1 2 2 chunks +2 lines, -2 lines 0 comments Download
M chrome/browser/views/edit_keyword_controller.cc View 1 2 3 chunks +4 lines, -3 lines 0 comments Download
M chrome/browser/views/find_bar_view.h View 1 2 2 chunks +2 lines, -2 lines 0 comments Download
M chrome/browser/views/find_bar_view.cc View 1 2 2 chunks +13 lines, -2 lines 0 comments Download
M chrome/browser/views/find_bar_win.h View 1 2 1 chunk +5 lines, -0 lines 0 comments Download
M chrome/browser/views/find_bar_win.cc View 1 2 3 4 1 chunk +18 lines, -0 lines 0 comments Download
M chrome/browser/views/input_window.cc View 1 2 3 chunks +5 lines, -3 lines 0 comments Download
M chrome/browser/views/new_profile_dialog.h View 1 2 2 chunks +3 lines, -3 lines 0 comments Download
M chrome/browser/views/options/cookies_view.h View 1 2 3 chunks +6 lines, -6 lines 0 comments Download
M chrome/browser/views/options/cookies_view.cc View 1 2 6 chunks +6 lines, -5 lines 0 comments Download
M chrome/browser/views/options/general_page_view.h View 1 2 3 chunks +3 lines, -3 lines 0 comments Download
M chrome/browser/views/options/general_page_view.cc View 1 2 5 chunks +6 lines, -6 lines 0 comments Download
M chrome/browser/views/shelf_item_dialog.h View 1 2 3 chunks +7 lines, -7 lines 0 comments Download
M chrome/common/render_messages_internal.h View 1 2 2 chunks +4 lines, -1 line 0 comments Download
M chrome/renderer/render_view.h View 2 chunks +3 lines, -1 line 0 comments Download
M chrome/renderer/render_view.cc View 3 chunks +7 lines, -1 line 0 comments Download
M chrome/renderer/render_widget.h View 1 2 3 4 5 6 2 chunks +5 lines, -5 lines 0 comments Download
M chrome/renderer/render_widget.cc View 1 2 3 4 5 6 1 chunk +1 line, -1 line 0 comments Download
M chrome/views/controls/text_field.h View 1 2 2 chunks +4 lines, -2 lines 0 comments Download
M chrome/views/controls/text_field.cc View 1 2 1 chunk +11 lines, -5 lines 0 comments Download
M webkit/glue/webview.h View 3 chunks +9 lines, -5 lines 0 comments Download
M webkit/glue/webview_impl.h View 2 1 chunk +1 line, -0 lines 0 comments Download
M webkit/glue/webview_impl.cc View 2 1 chunk +33 lines, -0 lines 0 comments Download

Messages

Total messages: 5 (0 generated)
Finnur
11 years, 8 months ago (2009-04-07 23:57:29 UTC) #1
jcampan
http://codereview.chromium.org/62129/diff/28/1045 File chrome/browser/renderer_host/render_widget_host.h (right): http://codereview.chromium.org/62129/diff/28/1045#newcode170 Line 170: void ClearFocusedNode(); I think this method only belongs ...
11 years, 8 months ago (2009-04-08 17:35:50 UTC) #2
Finnur
All done, I believe, and uploaded. Please take another look.
11 years, 8 months ago (2009-04-08 21:13:34 UTC) #3
jcampan
http://codereview.chromium.org/62129/diff/74/99 File chrome/renderer/render_widget.cc (right): http://codereview.chromium.org/62129/diff/74/99#newcode127 Line 127: IPC_MESSAGE_HANDLER(ViewMsg_ClearFocusedNode, OnClearFocusedNode) This should be moved to RenderView. ...
11 years, 8 months ago (2009-04-08 21:23:02 UTC) #4
jcampan
11 years, 8 months ago (2009-04-08 21:47:58 UTC) #5
LGTM

Powered by Google App Engine
This is Rietveld 408576698