summaryrefslogtreecommitdiffstats
path: root/views/window/custom_frame_view.cc
diff options
context:
space:
mode:
Diffstat (limited to 'views/window/custom_frame_view.cc')
-rw-r--r--views/window/custom_frame_view.cc7
1 files changed, 7 insertions, 0 deletions
diff --git a/views/window/custom_frame_view.cc b/views/window/custom_frame_view.cc
index d3fd085..689b87b 100644
--- a/views/window/custom_frame_view.cc
+++ b/views/window/custom_frame_view.cc
@@ -86,6 +86,13 @@ CustomFrameView::CustomFrameView(Window* frame)
ResourceBundle& rb = ResourceBundle::GetSharedInstance();
+ // The frame's buttons should not be focusable.
+ close_button_->SetFocusable(false);
+ restore_button_->SetFocusable(false);
+ maximize_button_->SetFocusable(false);
+ minimize_button_->SetFocusable(false);
+ system_menu_button_->SetFocusable(false);
+
// Close button images will be set in LayoutWindowControls().
AddChildView(close_button_);