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

Unified Diff: chrome/browser/resources/settings/people_page/lock_screen.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/people_page/lock_screen.js
diff --git a/chrome/browser/resources/settings/people_page/lock_screen.js b/chrome/browser/resources/settings/people_page/lock_screen.js
index f0ea062cd01b67e9b2de2cf9296b0b0dc28ae915..230fa2d552ef22aea9d46f3ef58824649c4e593a 100644
--- a/chrome/browser/resources/settings/people_page/lock_screen.js
+++ b/chrome/browser/resources/settings/people_page/lock_screen.js
@@ -208,7 +208,7 @@ Polymer({
if (!this.setModes_)
settings.navigateTo(settings.Route.PEOPLE);
else
- this.$$('#unlockType').focus();
+ cr.ui.focusWithoutInk(assert(this.$$('#unlockType')));
},
/** @private */
@@ -218,7 +218,7 @@ Polymer({
/** @private */
onSetupPinClosed_: function() {
- this.$$('#setupPinButton').focus();
+ cr.ui.focusWithoutInk(assert(this.$$('#setupPinButton')));
},
/**
@@ -304,7 +304,7 @@ Polymer({
// Restores focus on close to either the turn-off or set-up button,
// whichever is being displayed.
- this.$$('.secondary-button').focus();
+ cr.ui.focusWithoutInk(assert(this.$$('.secondary-button')));
},
/**

Powered by Google App Engine
This is Rietveld 408576698