Skip to content

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

:art: fix https://github.com/siyuan-note/siyuan/issues/10896

Vanessae4c619137911
diff --git a/app/src/menus/index.ts b/app/src/menus/index.ts
index ea151aa50a..2842a4e7e9 100644
--- a/app/src/menus/index.ts
+++ b/app/src/menus/index.ts
@@ -32,7 +32,7 @@ export class Menus {
event.preventDefault();
return;
}
- if (target.classList.contains("b3-text-field")) {
+ if (target.classList.contains("b3-text-field") || (target.tagName === "INPUT" && (target as HTMLInputElement).type === "text")) {
/// #if !BROWSER
ipcRenderer.send(Constants.SIYUAN_CONTEXT_MENU, {
undo: window.siyuan.languages.undo,