Commit 1f29b459 authored by rohitrao@chromium.org's avatar rohitrao@chromium.org

[Mac] Force-enable the find next/previous buttons when pressing

Cmd-F to repeat a search.

BUG=http://crbug.com/18762
BUG=http://crbug.com/20273
TEST=See test cases in bugs.  Both should work now.
Review URL: http://codereview.chromium.org/200050

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@25722 0039d316-1c4b-4281-b951-d872f2087c98
parent be7f1471
......@@ -128,6 +128,12 @@
- (void)setFocusAndSelection {
[[findText_ window] makeFirstResponder:findText_];
// Enable the buttons if the find text is non-empty.
BOOL buttonsEnabled = ([[findText_ stringValue] length] > 0) ? YES : NO;
[previousButton_ setEnabled:buttonsEnabled];
[nextButton_ setEnabled:buttonsEnabled];
}
- (void)setFindText:(const string16&)findText {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment