| Index: ui/views/controls/tree/tree_view.cc
|
| diff --git a/ui/views/controls/tree/tree_view.cc b/ui/views/controls/tree/tree_view.cc
|
| index 30428a31cadc3a535e06d642f68697863664b61d..3da9549fd55f33e08f8851cb3ca42db2bb2ba1e7 100644
|
| --- a/ui/views/controls/tree/tree_view.cc
|
| +++ b/ui/views/controls/tree/tree_view.cc
|
| @@ -81,7 +81,9 @@ TreeView::TreeView()
|
| controller_(NULL),
|
| root_shown_(true),
|
| row_height_(font_list_.GetHeight() + kTextVerticalPadding * 2) {
|
| - SetFocusable(true);
|
| + // On Mac, only textfields and lists are focusable by default. Since TreeView
|
| + // represents a list, use ALWAYS focus behavior.
|
| + SetFocusBehavior(views::View::FocusBehavior::ALWAYS);
|
| closed_icon_ = *ui::ResourceBundle::GetSharedInstance().GetImageNamed(
|
| (base::i18n::IsRTL() ? IDR_FOLDER_CLOSED_RTL
|
| : IDR_FOLDER_CLOSED)).ToImageSkia();
|
|
|