Skip to content

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

:bug: Preserve keyboard navigation in recent document sorting https://github.com/siyuan-note/siyuan/issues/20039

Daniel8c919b1ce64e
diff --git a/app/src/boot/globalEvent/keydown.ts b/app/src/boot/globalEvent/keydown.ts
index b4e62d4b6f..0738809943 100644
--- a/app/src/boot/globalEvent/keydown.ts
+++ b/app/src/boot/globalEvent/keydown.ts
@@ -1459,6 +1459,9 @@ export const windowKeyDown = (app: App, event: KeyboardEvent) => {
}
});
if (openRecentDocsDialog) {
+ if ((event.target as HTMLElement).closest("select")) {
+ return;
+ }
event.preventDefault();
dialogArrow(app, openRecentDocsDialog.element, event);
return;