Skip to content

Build your personal knowledge base with Trilium Notes

escape now closes recent notes (as works in other dialogs)

azivner562a07135069
diff --git a/static/js/recent_notes.js b/static/js/recent_notes.js
index 7506c2d85e..02586f93c9 100644
--- a/static/js/recent_notes.js
+++ b/static/js/recent_notes.js
@@ -88,6 +88,9 @@ $('#recent-notes-select-box').keydown(e => {
else if (key === 76 /* l */) {
addLinkBasedOnRecentNotes();
}
+ else {
+ return; // avoid prevent default
+ }
e.preventDefault();
});