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

Unified Diff: chrome/browser/resources/md_history/list_container.js

Issue 2503613002: MD History: focus REMOVE button by default in multi-delete dialog (Closed)
Patch Set: revert downloads Created 4 years, 1 month 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/md_history/list_container.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/md_history/list_container.js
diff --git a/chrome/browser/resources/md_history/list_container.js b/chrome/browser/resources/md_history/list_container.js
index a54bc2f39746463c7498807d7ac33775437f5180..751742121431cc4a0406e75dc07ea1a112b6cc0e 100644
--- a/chrome/browser/resources/md_history/list_container.js
+++ b/chrome/browser/resources/md_history/list_container.js
@@ -136,6 +136,9 @@ Polymer({
if (this.queryState.searchTerm != '')
browserService.recordAction('SearchResultRemove');
this.$.dialog.get().showModal();
+
+ // TODO(dbeam): remove focus flicker caused by showModal() + focus().
+ this.$$('.action-button').focus();
},
/**
« no previous file with comments | « chrome/browser/resources/md_history/list_container.html ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698