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

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

Issue 2141433003: MD History: Shift focus to overflow menu icon while removing bookmark (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 5 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/md_history/history_item.js
diff --git a/chrome/browser/resources/md_history/history_item.js b/chrome/browser/resources/md_history/history_item.js
index 27c576f2a82a8fc720c2d6d538e2bc7e9ea8f2b0..369393f50c328443ac6a83ecda32b06411fc9cb6 100644
--- a/chrome/browser/resources/md_history/history_item.js
+++ b/chrome/browser/resources/md_history/history_item.js
@@ -50,6 +50,10 @@ cr.define('md_history', function() {
* @private
*/
onRemoveBookmarkTap_: function() {
+ if (this.$['bookmark-star'] == this.root.activeElement) {
tsergeant 2016/07/15 04:50:01 Nit: Remove {}
lshang 2016/07/19 07:55:10 Done.
+ this.$['menu-button'].focus();
+ }
+
md_history.BrowserService.getInstance()
.removeBookmark(this.item.url);
this.fire('remove-bookmark-stars', this.item.url);

Powered by Google App Engine
This is Rietveld 408576698