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

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

Issue 2785473003: views::TableView - request focus on tap. (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
« 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/controls/table/table_view.cc
diff --git a/ui/views/controls/table/table_view.cc b/ui/views/controls/table/table_view.cc
index 6e05566534e2390c329380af58ea0e358c0ccd37..6d1b338bbe6ddcb2b3d57737a823acd2b808cc8a 100644
--- a/ui/views/controls/table/table_view.cc
+++ b/ui/views/controls/table/table_view.cc
@@ -409,6 +409,7 @@ bool TableView::OnMousePressed(const ui::MouseEvent& event) {
}
void TableView::OnGestureEvent(ui::GestureEvent* event) {
+ RequestFocus();
sky 2017/03/28 17:41:24 Should we only request focus on ET_GESTURE_TAP_DOW
Evan Stade 2017/03/28 17:43:17 I am hoping Terry knows what the standard behavior
tdanderson 2017/03/28 21:26:22 Doing a quick audit of other surfaces it doesn't l
if (event->type() != ui::ET_GESTURE_TAP)
return;
« 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