Fixed: clicking a result wasn't saving the query

This commit is contained in:
Simon Cambier
2022-10-23 22:55:24 +02:00
parent 241d0ef430
commit 74d4d41807

View File

@@ -77,7 +77,11 @@
function onClick(evt?: MouseEvent | KeyboardEvent) {
if (!selectedNote) return
openNote(selectedNote, evt?.ctrlKey) // Keep ctrl pressed to open in a new pane
if (evt?.ctrlKey) {
openNoteInNewPane()
} else {
openNoteAndCloseModal()
}
modal.close()
}