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

Unified Diff: chrome/browser/resources/options/autofill_options_list.js

Issue 22124002: Settings: Make 'edit' button in autofill setting not mouse-focusable. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 4 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/resources/options/autofill_options_list.js
diff --git a/chrome/browser/resources/options/autofill_options_list.js b/chrome/browser/resources/options/autofill_options_list.js
index 2e16a8f15ae09cd4e586ede77b192f0e7ea26478..c36c98a4df0a94d89c5e5bbc9c8f52961b3e1c5b 100644
--- a/chrome/browser/resources/options/autofill_options_list.js
+++ b/chrome/browser/resources/options/autofill_options_list.js
@@ -15,9 +15,11 @@ cr.define('options.autofillOptions', function() {
loadTimeData.getString('autofillEditProfileButton');
editButtonEl.onclick = function(e) { edit(guid); };
- // Don't select the row when clicking the button.
editButtonEl.onmousedown = function(e) {
+ // Don't select the row when clicking the button.
e.stopPropagation();
+ // Don't focus on the button when clicking it.
+ e.preventDefault();
};
return editButtonEl;
« 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