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

Unified Diff: chrome/browser/ui/views/desktop_media_picker_views.cc

Issue 1313843003: Enable keyboard navigation for Desktopcapture window selection dialog (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: move focus from dialogview to listview Created 5 years, 3 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: chrome/browser/ui/views/desktop_media_picker_views.cc
diff --git a/chrome/browser/ui/views/desktop_media_picker_views.cc b/chrome/browser/ui/views/desktop_media_picker_views.cc
index b2975b2b2309b25d1a1208e10f30ccd1bbb3a35c..7224aab43e1995d3230a2d41dfa5aa540ef527e1 100644
--- a/chrome/browser/ui/views/desktop_media_picker_views.cc
+++ b/chrome/browser/ui/views/desktop_media_picker_views.cc
@@ -443,6 +443,10 @@ DesktopMediaPickerDialogView::DesktopMediaPickerDialogView(
}
list_view_->StartUpdating(dialog_window_id);
+
+ // Enable and request keyboard focus for list view.
+ list_view_->SetFocusable(true);
Peter Kasting 2015/09/23 20:54:20 I would move this to the list view's constructor.
gyzhou 2015/09/23 22:37:26 Done.
+ list_view_->RequestFocus();
Peter Kasting 2015/09/23 20:54:20 I would instead implement this by overriding GetIn
gyzhou 2015/09/23 22:37:26 Done.
}
DesktopMediaPickerDialogView::~DesktopMediaPickerDialogView() {}
« 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