Commit ecd1e9fe authored by zork@chromium.org's avatar zork@chromium.org

Fix uber tray to accept focus via tab selection


R=sadrul@chromium.org
BUG=chromium-os:119308


Review URL: http://codereview.chromium.org/10116018

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@133580 0039d316-1c4b-4281-b951-d872f2087c98
parent 33e42264
...@@ -317,6 +317,13 @@ bool WebUILoginView::IsPopupOrPanel(const WebContents* source) const { ...@@ -317,6 +317,13 @@ bool WebUILoginView::IsPopupOrPanel(const WebContents* source) const {
} }
bool WebUILoginView::TakeFocus(bool reverse) { bool WebUILoginView::TakeFocus(bool reverse) {
ash::SystemTray* tray = ash::Shell::GetInstance()->tray();
if (tray) {
tray->SetNextFocusableView(this);
ash::Shell::GetInstance()->RotateFocus(reverse ? ash::Shell::BACKWARD :
ash::Shell::FORWARD);
}
return true; return true;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment