Build your personal knowledge base with Trilium Notes
TypeScript electronelectron-appknowledge-baseknowledge-graphknowledge-managementknowledge-management-graphlocal-firstnote-managmentnote-takernote-takingnotebooknotesnotes-apppersonal-knowledge-basepersonal-wikiscriptableself-hostedself-hostingwiki
double click can be also used to choose from recent notes
azivner9d80f56d817c
diff --git a/static/js/init.js b/static/js/init.jsindex 928ec86293..ffc90ec439 100644--- a/static/js/init.js+++ b/static/js/init.js@@ -42,15 +42,23 @@ $(document).bind('keypress', 'alt+q', function() {});});+function setActiveNoteBasedOnRecentNotes() {+ let noteId = $("#recentNotesSelectBox option:selected").val();++ $("#tree").fancytree('getNodeByKey', noteId).setActive();++ $("#recentNotesDialog").dialog('close');+}+$('#recentNotesSelectBox').keydown(function(e) {let key = e.which;if (key === 13)// the enter key code{- let noteId = $("#recentNotesSelectBox option:selected").val();-- $("#tree").fancytree('getNodeByKey', noteId).setActive();-- $("#recentNotesDialog").dialog('close');+ setActiveNoteBasedOnRecentNotes();}+});++$('#recentNotesSelectBox').dblclick(function(e) {+ setActiveNoteBasedOnRecentNotes();});\ No newline at end of file