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

Unified Diff: ui/views/controls/button/custom_button.cc

Issue 1919033002: Don't allow events to be swallowed by MdFocusRing. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@2704
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
« 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/button/custom_button.cc
diff --git a/ui/views/controls/button/custom_button.cc b/ui/views/controls/button/custom_button.cc
index 9a0e28a65a5e92a62935741c130cbb0fb2dd4962..c99fcaacb72310a5b0ee26654b7f84a0d5370a9a 100644
--- a/ui/views/controls/button/custom_button.cc
+++ b/ui/views/controls/button/custom_button.cc
@@ -48,6 +48,9 @@ class MdFocusRing : public views::View {
MdFocusRing() {
SetPaintToLayer(true);
layer()->SetFillsBoundsOpaquely(false);
+
+ // Don't accept input events.
+ SetEnabled(false);
}
~MdFocusRing() override {}
« 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