Index: ui/views/controls/table/table_view.cc |
diff --git a/ui/views/controls/table/table_view.cc b/ui/views/controls/table/table_view.cc |
index 3a289f3b22c571f2efd9c80a038016b68dbd04c8..a13c9d217f8dea18330399d91226b066602de192 100644 |
--- a/ui/views/controls/table/table_view.cc |
+++ b/ui/views/controls/table/table_view.cc |
@@ -145,7 +145,11 @@ TableView::TableView(ui::TableModel* model, |
visible_column.column = columns[i]; |
visible_columns_.push_back(visible_column); |
} |
- SetFocusable(true); |
+ |
+ // On Mac, except textfields and lists, no control should be focusable by |
+ // default. In Cocoa, lists are generally represented using NSTableView. Hence |
+ // use ALWAYS instead of CONTROL focus behavior for TableView. |
+ SetFocusBehavior(ALWAYS); |
SetModel(model); |
} |