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

Unified Diff: chrome/browser/resources/settings/controls/controlled_radio_button.js

Issue 2389203003: Move tab index and focus to radio button. (Closed)
Patch Set: Created 4 years, 2 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/controls/controlled_radio_button.js
diff --git a/chrome/browser/resources/settings/controls/controlled_radio_button.js b/chrome/browser/resources/settings/controls/controlled_radio_button.js
index 33dc95979e7ea356b9a40952cba52bb0b33ade97..cf697206d0d34ec9b661ceb0f252fcac6ccd2ee7 100644
--- a/chrome/browser/resources/settings/controls/controlled_radio_button.js
+++ b/chrome/browser/resources/settings/controls/controlled_radio_button.js
@@ -21,6 +21,10 @@ Polymer({
},
},
+ listeners: {
+ 'focus': 'onFocus_',
+ },
+
/**
* @return {boolean} Whether the button is disabled.
* @private
@@ -49,4 +53,9 @@ Polymer({
e.preventDefault();
e.stopPropagation();
},
+
+ /** Focuses the internal radio button when the row is selected. */
+ onFocus_: function() {
+ this.$.radioButton.focus();
+ },
});

Powered by Google App Engine
This is Rietveld 408576698