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

Unified Diff: chrome/browser/resources/settings/bluetooth_page/bluetooth_device_list_item.js

Issue 2945433002: MD Settings: fix incorrect behavior with Enter on bluetooth item's icon-button. (Closed)
Patch Set: easier way Created 3 years, 5 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 | « chrome/browser/resources/settings/bluetooth_page/bluetooth_device_list_item.html ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/resources/settings/bluetooth_page/bluetooth_device_list_item.js
diff --git a/chrome/browser/resources/settings/bluetooth_page/bluetooth_device_list_item.js b/chrome/browser/resources/settings/bluetooth_page/bluetooth_device_list_item.js
index 4c17eaf4c877035208795728da40cc4b34ae1449..461bd4f4455f0bd171ec222d1dcc9b56f8677db7 100644
--- a/chrome/browser/resources/settings/bluetooth_page/bluetooth_device_list_item.js
+++ b/chrome/browser/resources/settings/bluetooth_page/bluetooth_device_list_item.js
@@ -21,6 +21,12 @@ Polymer({
},
},
+ doNothing_: function() {
dschuyler 2017/07/13 00:47:13 /** @private */ and maybe(?) rename to something
scottchen 2017/07/13 18:34:00 Done.
+ if (event.key == 'Enter') {
+ event.stopPropagation();
+ }
+ },
+
/**
* @param {!Event} event
* @private
« no previous file with comments | « chrome/browser/resources/settings/bluetooth_page/bluetooth_device_list_item.html ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698