Index: ash/system/web_notification/web_notification_tray.cc |
diff --git a/ash/system/web_notification/web_notification_tray.cc b/ash/system/web_notification/web_notification_tray.cc |
index 208187b9972a67c591f93046e8c98e7aa87d3065..ff40d760bc8929fcae4cf33fe1eef9806f8eab45 100644 |
--- a/ash/system/web_notification/web_notification_tray.cc |
+++ b/ash/system/web_notification/web_notification_tray.cc |
@@ -214,6 +214,7 @@ WebNotificationTray::WebNotificationTray(StatusAreaWidget* status_area_widget) |
button_->set_triggerable_event_flags( |
ui::EF_LEFT_MOUSE_BUTTON | ui::EF_RIGHT_MOUSE_BUTTON); |
tray_container()->AddChildView(button_); |
+ button_->SetFocusBehavior(FocusBehavior::NEVER); |
SetContentsBackground(); |
tray_container()->SetBorder(views::Border::NullBorder()); |
message_center_tray_.reset(new message_center::MessageCenterTray( |
@@ -504,6 +505,8 @@ void WebNotificationTray::UpdateTrayContent() { |
SetVisible(IsLoggedIn()); |
Layout(); |
SchedulePaint(); |
+ if (IsLoggedIn()) |
+ status_area_widget()->system_tray()->SetNextFocusableView(this); |
} |
void WebNotificationTray::ClickedOutsideBubble() { |