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

Unified Diff: chrome/browser/resources/bookmark_manager/js/main.js

Issue 515853002: "ctrl + double click" acts on the highlighted/selected bookmark list items irrespective of on which… (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 4 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 | « AUTHORS ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/resources/bookmark_manager/js/main.js
diff --git a/chrome/browser/resources/bookmark_manager/js/main.js b/chrome/browser/resources/bookmark_manager/js/main.js
index 079bc8ebe4a2f9fe5ed7653e0808e0d4182665f8..7db191be87c4f6db689fc9c74026b2a8592405bc 100644
--- a/chrome/browser/resources/bookmark_manager/js/main.js
+++ b/chrome/browser/resources/bookmark_manager/js/main.js
@@ -239,6 +239,17 @@ function processHash() {
// Activate is handled by the open-in-same-window-command.
function handleDoubleClickForList(e) {
+ var target = e.target;
+ target = list.getListItemAncestor(target);
+ var index = -1;
yosin_UTC9 2014/09/01 01:04:54 nit: "?" makes shorter: var index = target ? list.
+ if (target)
+ index = list.getIndexOfListItem(target);
+
+ var sm = list.selectionModel;
+ var indexSelected = sm.getIndexSelected(index);
+ if (!indexSelected)
+ list.handlePointerDownUp_(e);
+
if (e.button == 0)
$('open-in-same-window-command').execute();
}
« no previous file with comments | « AUTHORS ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698