Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(347)

Unified Diff: ui/views/bubble/bubble_frame_view.cc

Issue 2982533002: Remove the BubbleFrameView close button from tab traversal on all platforms. (Closed)
Patch Set: update comment Created 3 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/views/bubble/bubble_frame_view.cc
diff --git a/ui/views/bubble/bubble_frame_view.cc b/ui/views/bubble/bubble_frame_view.cc
index 079300c90f2f8a8bad141d0cacb92f7ac96379d2..8a75ea3eb12b40978691e3ab13cbdaa6e642964f 100644
--- a/ui/views/bubble/bubble_frame_view.cc
+++ b/ui/views/bubble/bubble_frame_view.cc
@@ -133,6 +133,12 @@ Button* BubbleFrameView::CreateCloseButton(ButtonListener* listener) {
}
close_button->SetTooltipText(l10n_util::GetStringUTF16(IDS_APP_CLOSE));
close_button->SizeToPreferredSize();
+
+ // Remove the close button from tab traversal on all platforms. Note this does
+ // not affect screen readers' ability to focus the close button. Keyboard
+ // access to the close button when not using a screen reader is done via the
+ // ESC key handler in DialogClientView.
+ close_button->SetFocusBehavior(View::FocusBehavior::NEVER);
return close_button;
}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698