Skip to content

Commit 6bbe7f4

Browse files
Open bookmark on double click
1 parent 03be784 commit 6bbe7f4

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

plugins/Bookmark.jsx

+7-1
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,13 @@ class Bookmark extends React.Component {
110110
"bookmark-list-item-active": this.state.currentBookmark === bookmark.key
111111
});
112112
return (
113-
<div className={itemclasses} key={bookmark.key} onClick={() => this.toggleCurrentBookmark(bookmark)} title={lastUpdateTitle + ": " + bookmark.date}>{bookmark.description}</div>
113+
<div className={itemclasses} key={bookmark.key}
114+
onClick={() => this.toggleCurrentBookmark(bookmark)}
115+
onDoubleClick={() => this.open(bookmark.key, false)}
116+
title={lastUpdateTitle + ": " + bookmark.date}
117+
>
118+
{bookmark.description}
119+
</div>
114120
);
115121
})}
116122
{isEmpty(this.state.bookmarks) ? (

0 commit comments

Comments
 (0)