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

Unified Diff: ui/views/controls/table/table_view.cc

Issue 2769243002: Adjust initial activation/focus Task Manager/Views TableView. (Closed)
Patch Set: Created 3 years, 9 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: ui/views/controls/table/table_view.cc
diff --git a/ui/views/controls/table/table_view.cc b/ui/views/controls/table/table_view.cc
index ab17e37d723aad00bee65cb576e12a2cc833c984..8044b6d0fc20e5e5bab9923493f20212f294b31b 100644
--- a/ui/views/controls/table/table_view.cc
+++ b/ui/views/controls/table/table_view.cc
@@ -626,8 +626,11 @@ void TableView::OnFocus() {
ScrollView* scroll_view = ScrollView::GetScrollViewForContents(this);
if (scroll_view)
scroll_view->SetHasFocusIndicator(true);
- SchedulePaintForSelection();
+ if (selection_model_.active() == -1)
sky 2017/03/23 17:50:17 && RowCount() > 0 ? Maybe add test coverage for th
Evan Stade 2017/03/23 22:56:26 I didn't add that check because I was copying Adva
+ SelectByViewIndex(0);
+
+ SchedulePaintForSelection();
NotifyAccessibilityEvent(ui::AX_EVENT_FOCUS, true);
}

Powered by Google App Engine
This is Rietveld 408576698