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 b594272ad2610088c727a31a927c8b5cb06b4586..0b30820fa937b45af6bc62f0d0ff35f5c205d3db 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 focus behavior for TableView. |
+ SetFocusBehavior(views::View::FocusBehavior::ALWAYS); |
SetModel(model); |
} |