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

Unified Diff: ui/views/controls/button/md_text_button.cc

Issue 1690543004: MacViews: Implement Full Keyboard Access. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: ui/views/controls/button/md_text_button.cc
diff --git a/ui/views/controls/button/md_text_button.cc b/ui/views/controls/button/md_text_button.cc
index bf0c9bd03ddc10166f5bf76beb8050246ffb57f8..d00b0e0344f640ced5a1bb95f208ca009d2f5237 100644
--- a/ui/views/controls/button/md_text_button.cc
+++ b/ui/views/controls/button/md_text_button.cc
@@ -76,7 +76,7 @@ MdTextButton::MdTextButton(ButtonListener* listener)
set_ink_drop_delegate(&ink_drop_delegate_);
set_has_ink_drop_action_on_click(true);
SetHorizontalAlignment(gfx::ALIGN_CENTER);
- SetFocusable(true);
+ Button::ConfigureDefaultFocus(this);
SetMinSize(gfx::Size(kMinWidth, 0));
SetFocusPainter(nullptr);
UseMdFocusRing();

Powered by Google App Engine
This is Rietveld 408576698