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

Issue 62144: Don't leave focus on the next/prior button on the find bar (Closed)

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

Description

Ensure the previous/next button don't get focused when clicked. We keep the button focusable so they can be tab traversed. BUG=9772 TEST=See bug Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=13364

Patch Set 1 #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+3 lines, -0 lines) Patch
M chrome/browser/views/find_bar_view.cc View 1 chunk +3 lines, -0 lines 1 comment Download

Messages

Total messages: 3 (0 generated)
jcampan
11 years, 8 months ago (2009-04-08 07:08:37 UTC) #1
Finnur
http://codereview.chromium.org/62144/diff/1/2 File chrome/browser/views/find_bar_view.cc (right): http://codereview.chromium.org/62144/diff/1/2#newcode438 Line 438: find_text_->RequestFocus(); Wait... what happens if I press Tab ...
11 years, 8 months ago (2009-04-08 15:22:36 UTC) #2
Finnur
11 years, 8 months ago (2009-04-08 17:26:31 UTC) #3
After speaking with Jay, we agree that this is an appropriate short term fix
that fixes the regression and gets us back to where we were before. 

We'd like to do this only if the button is pressed with the mouse, but our
button handling code doesn't propagate that information down to the listeners. 

Fixing that involves making lots of little changes to the button handler code
(in every file that has a button handler), so we should file a bug and look at
it later. 

Please file the bug and comment this line saying that we should only be doing
this on mouseclick, not keyboard clicks.

With that, LGTM.

On 2009/04/08 15:22:36, Finnur wrote:
> http://codereview.chromium.org/62144/diff/1/2
> File chrome/browser/views/find_bar_view.cc (right):
> 
> http://codereview.chromium.org/62144/diff/1/2#newcode438
> Line 438: find_text_->RequestFocus();
> Wait... what happens if I press Tab twice (starting at the text field)? Will I
> make it to the FindNext button? Won't it go from the text-field to the
> FindPrevious button and back to the text-field (in a loop).

Powered by Google App Engine
This is Rietveld 408576698