Commit 0cb79e0e authored by Danila Kuzmin's avatar Danila Kuzmin Committed by Commit Bot

oobe: Fix reverse focus for screens without LoginShelfView buttons

Bug: 1134822
Change-Id: I8fdae2162564b787a9d484b58cb687cf6c8d5b1c
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2470878Reviewed-by: default avatarRoman Sorokin [CET] <rsorokin@chromium.org>
Reviewed-by: default avatarManu Cornet <manucornet@chromium.org>
Commit-Queue: Danila Kuzmin <dkuzmin@google.com>
Cr-Commit-Position: refs/heads/master@{#819809}
parent cdd4f6b7
......@@ -45,7 +45,9 @@ void ShelfFocusCycler::FocusOut(bool reverse, SourceView source_view) {
// if we're going in reverse; if we're going forward, let the system
// tray focus observers focus the lock/login view.
if (shelf_->shelf_widget()->login_shelf_view()->GetVisible() &&
!reverse) {
(!reverse ||
(!shelf_->shelf_widget()->login_shelf_view()->IsFocusable() &&
reverse))) {
// Login/lock screen or OOBE.
Shell::Get()->system_tray_notifier()->NotifyFocusOut(reverse);
} else if (reverse) {
......
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