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

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

Issue 1894383002: MacViews: Implement Full Keyboard Access. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@SetFocusBehavior
Patch Set: Rebased Created 4 years, 7 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 bfee2c9fcaae4b4d5db91a57c614a8103cfdde40..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);
- SetFocusBehavior(FocusBehavior::ALWAYS);
+ Button::ConfigureDefaultFocus(this);
SetMinSize(gfx::Size(kMinWidth, 0));
SetFocusPainter(nullptr);
UseMdFocusRing();

Powered by Google App Engine
This is Rietveld 408576698