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

Unified Diff: chrome/browser/resources/settings/bluetooth_page/bluetooth_subpage.js

Issue 2817803002: MD Settings: CrOS: Focus elements on dialog close (Closed)
Patch Set: rebase 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/bluetooth_page/bluetooth_subpage.js
diff --git a/chrome/browser/resources/settings/bluetooth_page/bluetooth_subpage.js b/chrome/browser/resources/settings/bluetooth_page/bluetooth_subpage.js
index bbff7a444320c4665809a22a8290ce354dec454f..39b0b4ffb0cb94e4c70cdfc77d84bd4e3de447d6 100644
--- a/chrome/browser/resources/settings/bluetooth_page/bluetooth_subpage.js
+++ b/chrome/browser/resources/settings/bluetooth_page/bluetooth_subpage.js
@@ -462,8 +462,12 @@ Polymer({
},
/** @private */
- onDialogClosed_: function() {
+ onDialogClose_: function() {
this.dialogId_ = '';
this.pairingDevice_ = undefined;
+ // The list is dynamic so focus the first item.
+ var device = this.$$('#unpairedContainer bluetooth-device-list-item');
+ if (device)
+ device.focus();
},
});

Powered by Google App Engine
This is Rietveld 408576698