From b6b7ed1ea99570da73924e7692dac99179224ea5 Mon Sep 17 00:00:00 2001 From: "chanial%noos.fr" Date: Tue, 28 Jan 2003 08:21:10 +0000 Subject: [PATCH] speed up a bit loading a bookmark from the sidebar. Fix also a regression: CTRL-click and SHIFT-click load only the selected bookmark. --- browser/components/bookmarks/content/bookmarksTree.xml | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/browser/components/bookmarks/content/bookmarksTree.xml b/browser/components/bookmarks/content/bookmarksTree.xml index 8cdda7e4cc5d..9c963e60362e 100644 --- a/browser/components/bookmarks/content/bookmarksTree.xml +++ b/browser/components/bookmarks/content/bookmarksTree.xml @@ -539,8 +539,7 @@ this.treeBoxObject.view.isContainer(row)) return; - if ((this.clickCount == 1 || modifKey) && - !this.treeBoxObject.selection.isSelected(row)) { + if (this.clickCount == 2 && modifKey) { this.treeBoxObject.selection.select(row); this._selection = this.getTreeSelection(); } @@ -947,7 +946,7 @@ onkeypress="event.preventBubble();"/> + onselect="this.parentNode.treeBoxObject.view.selectionChanged();" seltype="single">