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

Unified Diff: ui/views/examples/widget_example.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/examples/widget_example.cc
diff --git a/ui/views/examples/widget_example.cc b/ui/views/examples/widget_example.cc
index be6bbf39ccfc135bc2216014da47406fd92ea048..8d9e12c453e1a2c0a2e5fc4090859ba955643642 100644
--- a/ui/views/examples/widget_example.cc
+++ b/ui/views/examples/widget_example.cc
@@ -87,7 +87,7 @@ void WidgetExample::BuildButton(View* container,
const std::string& label,
int tag) {
LabelButton* button = new LabelButton(this, ASCIIToUTF16(label));
- button->SetFocusBehavior(View::FocusBehavior::ALWAYS);
+ Button::ConfigureDefaultFocus(button);
button->set_tag(tag);
container->AddChildView(button);
}

Powered by Google App Engine
This is Rietveld 408576698