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

Unified Diff: chrome/browser/resources/md_bookmarks/item.js

Issue 2972773003: MD Bookmarks: Always select targeted item during doubleclick (Closed)
Patch Set: Fix nit Created 3 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_bookmarks/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_bookmarks/item.js
diff --git a/chrome/browser/resources/md_bookmarks/item.js b/chrome/browser/resources/md_bookmarks/item.js
index 7f0466f356afb002d65d0b6ce0c1c2b0e9370288..99c3faa76dc9bf4295f96fe99ea42d5cb53ba315 100644
--- a/chrome/browser/resources/md_bookmarks/item.js
+++ b/chrome/browser/resources/md_bookmarks/item.js
@@ -148,6 +148,9 @@ Polymer({
* @private
*/
onDblClick_: function(e) {
+ if (!this.isSelectedItem_)
+ this.selectThisItem_();
+
var commandManager = bookmarks.CommandManager.getInstance();
var itemSet = this.getState().selection.items;
if (commandManager.canExecute(Command.OPEN, itemSet))
« no previous file with comments | « no previous file | chrome/test/data/webui/md_bookmarks/item_test.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698