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

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: minor change 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
« no previous file with comments | « no previous file | chrome/test/data/webui/md_history/history_item_test.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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..5a3fa265364c27cd8df7618ddb807c0c770451e1 100644
--- a/chrome/browser/resources/md_history/history_item.js
+++ b/chrome/browser/resources/md_history/history_item.js
@@ -50,6 +50,9 @@ cr.define('md_history', function() {
* @private
*/
onRemoveBookmarkTap_: function() {
+ if (this.$['bookmark-star'] == this.root.activeElement)
+ this.$['menu-button'].focus();
+
md_history.BrowserService.getInstance()
.removeBookmark(this.item.url);
this.fire('remove-bookmark-stars', this.item.url);
« no previous file with comments | « no previous file | chrome/test/data/webui/md_history/history_item_test.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698