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

Unified Diff: ui/views/controls/tabbed_pane/tabbed_pane.cc

Issue 1690543004: MacViews: Implement Full Keyboard Access. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 10 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/tabbed_pane/tabbed_pane.cc
diff --git a/ui/views/controls/tabbed_pane/tabbed_pane.cc b/ui/views/controls/tabbed_pane/tabbed_pane.cc
index eb15ac9a3be5f0cd0da1c24b2a70510dd8aa076a..17da72a83a314b23cabd68f3e27a44cc3c07a20c 100644
--- a/ui/views/controls/tabbed_pane/tabbed_pane.cc
+++ b/ui/views/controls/tabbed_pane/tabbed_pane.cc
@@ -267,7 +267,12 @@ TabbedPane::TabbedPane()
tab_strip_(new TabStrip(this)),
contents_(new View()),
selected_tab_index_(-1) {
+#if !defined(OS_MACOSX)
SetFocusable(true);
+#else
+ SetFocusable(false);
+ SetAccessibilityFocusable(true);
+#endif
AddChildView(tab_strip_);
AddChildView(contents_);
}

Powered by Google App Engine
This is Rietveld 408576698