Skip to content

An open-source, privacy-first, self-hosted knowledge workspace where humans and AI agents work together 开源、隐私优先、自托管的知识工作空间,让人与智能体在此协作

:bug: Prevent line breaks in database search box https://github.com/siyuan-note/siyuan/issues/19808

Daniele153fe67099e
diff --git a/app/src/protyle/render/av/search.ts b/app/src/protyle/render/av/search.ts
index 257890498d..5fc55c31d4 100644
--- a/app/src/protyle/render/av/search.ts
+++ b/app/src/protyle/render/av/search.ts
@@ -31,6 +31,11 @@ export const bindAvSearch = (options: {
if (event.isComposing) {
return;
}
+ if (event.key === "Enter") {
+ event.preventDefault();
+ event.stopPropagation();
+ return;
+ }
electronUndo(event);
});
const searchInputChange = (event: Event) => {