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

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

Issue 2889803002: md settings: Give focus to password prompt on tap. (Closed)
Patch Set: Created 3 years, 7 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/people_page.js
diff --git a/chrome/browser/resources/settings/people_page/people_page.js b/chrome/browser/resources/settings/people_page/people_page.js
index 2086f6e96b17c50cc85de7a3777213411e00f8fb..f525568b1b57b4ebe00d6f7655b84366d0c4b763 100644
--- a/chrome/browser/resources/settings/people_page/people_page.js
+++ b/chrome/browser/resources/settings/people_page/people_page.js
@@ -326,8 +326,15 @@ Polymer({
},
// <if expr="chromeos">
- /** @private */
- onConfigureLockTap_: function() {
+ /**
+ * @param {!Event} e
+ * @private
+ */
+ onConfigureLockTap_: function(e) {
+ // Navigating to the lock screen will always open the password prompt
+ // dialog, so prevent the end of the tap event to focus what is underneath
+ // it, which takes focus from the dialog.
+ e.preventDefault();
settings.navigateTo(settings.Route.LOCK_SCREEN);
},
// </if>

Powered by Google App Engine
This is Rietveld 408576698