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

Unified Diff: chrome/browser/ui/views/location_bar/location_icon_view.cc

Issue 1690543004: MacViews: Implement Full Keyboard Access. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 8 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
Index: chrome/browser/ui/views/location_bar/location_icon_view.cc
diff --git a/chrome/browser/ui/views/location_bar/location_icon_view.cc b/chrome/browser/ui/views/location_bar/location_icon_view.cc
index f1b4fc8d396218d5b32f8973a8dcc5f903ba2775..c8c4530c02ec89bfa87b1e69bcab39804857cd95 100644
--- a/chrome/browser/ui/views/location_bar/location_icon_view.cc
+++ b/chrome/browser/ui/views/location_bar/location_icon_view.cc
@@ -58,7 +58,12 @@ LocationIconView::LocationIconView(const gfx::FontList& font_list,
suppress_mouse_released_action_(false),
location_bar_(location_bar) {
set_id(VIEW_ID_LOCATION_ICON);
- SetFocusable(true);
+
+#if defined(OS_MACOSX)
+ SetFocusBehavior(views::View::FocusBehavior::ACCESSIBLE_ONLY);
+#else
+ SetFocusBehavior(views::View::FocusBehavior::ALWAYS);
+#endif
SetBackground(false);
}

Powered by Google App Engine
This is Rietveld 408576698