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

Unified Diff: chrome/browser/resources/settings/passwords_and_forms_page/autofill_section.js

Issue 2842303004: MD Settings: update dialogs to focus without ink when using mouse (Closed)
Patch Set: merge Created 3 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
Index: chrome/browser/resources/settings/passwords_and_forms_page/autofill_section.js
diff --git a/chrome/browser/resources/settings/passwords_and_forms_page/autofill_section.js b/chrome/browser/resources/settings/passwords_and_forms_page/autofill_section.js
index cc1a2d8a72f55e80858b8888eb7cde1788b6cc26..eda403181df3b4e5655c21f108deb058e8ea2e3f 100644
--- a/chrome/browser/resources/settings/passwords_and_forms_page/autofill_section.js
+++ b/chrome/browser/resources/settings/passwords_and_forms_page/autofill_section.js
@@ -302,7 +302,7 @@ AutofillManagerImpl.prototype = {
/** @private */
onAddressDialogClosed_: function() {
this.showAddressDialog_ = false;
- this.activeDialogAnchor_.focus();
+ cr.ui.focusWithoutInk(assert(this.activeDialogAnchor_));
this.activeDialogAnchor_ = null;
},
@@ -375,7 +375,7 @@ AutofillManagerImpl.prototype = {
/** @private */
onCreditCardDialogClosed_: function() {
this.showCreditCardDialog_ = false;
- this.activeDialogAnchor_.focus();
+ cr.ui.focusWithoutInk(assert(this.activeDialogAnchor_));
this.activeDialogAnchor_ = null;
},

Powered by Google App Engine
This is Rietveld 408576698