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

Side by Side Diff: chrome/browser/resources/settings/bluetooth_page/bluetooth_subpage.js

Issue 2842303004: MD Settings: update dialogs to focus without ink when using mouse (Closed)
Patch Set: you wanted this... 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 unified diff | Download patch
OLDNEW
1 // Copyright 2017 The Chromium Authors. All rights reserved. 1 // Copyright 2017 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 /** 5 /**
6 * @fileoverview 6 * @fileoverview
7 * 'settings-bluetooth-subpage' is the settings subpage for managing bluetooth 7 * 'settings-bluetooth-subpage' is the settings subpage for managing bluetooth
8 * properties and devices. 8 * properties and devices.
9 */ 9 */
10 10
(...skipping 453 matching lines...) Expand 10 before | Expand all | Expand 10 after
464 this.$.deviceDialog.open(); 464 this.$.deviceDialog.open();
465 }, 465 },
466 466
467 /** @private */ 467 /** @private */
468 onDialogClose_: function() { 468 onDialogClose_: function() {
469 this.dialogId_ = ''; 469 this.dialogId_ = '';
470 this.pairingDevice_ = undefined; 470 this.pairingDevice_ = undefined;
471 // The list is dynamic so focus the first item. 471 // The list is dynamic so focus the first item.
472 var device = this.$$('#unpairedContainer bluetooth-device-list-item'); 472 var device = this.$$('#unpairedContainer bluetooth-device-list-item');
473 if (device) 473 if (device)
474 device.focus(); 474 cr.ui.focusWithoutInk(device);
475 }, 475 },
476 }); 476 });
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698