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 b9e76ed5c3c436a80a7cc7ce92976d594f6f9f51..482c4f89243fd03b7c44d7325c22b0fe277c0224 100644 |
--- a/ui/views/controls/tree/tree_view.cc |
+++ b/ui/views/controls/tree/tree_view.cc |
@@ -81,6 +81,8 @@ TreeView::TreeView() |
controller_(NULL), |
root_shown_(true), |
row_height_(font_list_.GetHeight() + kTextVerticalPadding * 2) { |
+ // On Mac, only textfields and lists are focusable by default. Since TreeView |
+ // represents a list, use ALWAYS focus behavior. |
tapted
2016/04/20 06:05:58
This could be
// Always focusable, even on Mac (c
karandeepb
2016/05/03 02:54:13
Done.
|
SetFocusBehavior(FocusBehavior::ALWAYS); |
closed_icon_ = *ui::ResourceBundle::GetSharedInstance().GetImageNamed( |
(base::i18n::IsRTL() ? IDR_FOLDER_CLOSED_RTL |