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

Unified Diff: chrome/browser/resources/settings/people_page/lock_screen.js

Issue 2814423002: MD Settings: Users: Focus dialog buttons on close (Closed)
Patch Set: Feedback 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
« no previous file with comments | « chrome/browser/resources/settings/people_page/lock_screen.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/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 0699ef19bcc29668abf6b566af24bec0ae25fab5..af59d8db8e8ac6dc893031c006d2c79402bfc3ef 100644
--- a/chrome/browser/resources/settings/people_page/lock_screen.js
+++ b/chrome/browser/resources/settings/people_page/lock_screen.js
@@ -207,6 +207,8 @@ Polymer({
onPasswordClosed_: function() {
if (!this.setModes_)
settings.navigateTo(settings.Route.PEOPLE);
+ else
+ this.$$('#unlockType').focus();
},
/** @private */
@@ -214,6 +216,11 @@ Polymer({
this.$.setupPin.close();
},
+ /** @private */
+ onSetupPinClosed_: function() {
+ this.$$('#setupPinLink').focus();
+ },
+
/**
* Returns true if the setup pin section should be shown.
* @param {!string} selectedUnlockType The current unlock type. Used to let
« no previous file with comments | « chrome/browser/resources/settings/people_page/lock_screen.html ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698