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
Triggers full text search when Ctrl + Enter is pressed
SiriusXTe091ef64dd15
diff --git a/src/public/app/services/note_autocomplete.js b/src/public/app/services/note_autocomplete.jsindex 5932e6177e..52f0c2bc36 100644--- a/src/public/app/services/note_autocomplete.js+++ b/src/public/app/services/note_autocomplete.js@@ -131,19 +131,6 @@ function initNoteAutocomplete($el, options) {// this is important because otherwise input will lose focus immediately and not show the resultsreturn false;});-- // Triggers full text search when Ctrl + Enter is pressed.- $el.on('keydown', (event) => {- if (event.key === 'Enter') {- if (event.ctrlKey) {- // Prevent Ctrl + Enter from triggering autoComplete.- event.preventDefault();- event.stopImmediatePropagation();- const searchString = $el.val();- appContext.triggerCommand('searchNotes', { searchString });- }- }- });let autocompleteOptions = {};if (options.container) {