Skip to content

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

:art: Improve the tooltip displayed when dragging a block https://github.com/siyuan-note/siyuan/issues/14034

Daniel77173363b647
diff --git a/app/src/protyle/util/editorCommonEvent.ts b/app/src/protyle/util/editorCommonEvent.ts
index 01dc35765c..889ff94038 100644
--- a/app/src/protyle/util/editorCommonEvent.ts
+++ b/app/src/protyle/util/editorCommonEvent.ts
@@ -1578,6 +1578,9 @@ export const dropEvent = (protyle: IProtyle, editorElement: HTMLElement) => {
if (isAvTarget) {
// 拖到数据库视图:绑定为记录
action = window.siyuan.languages.addToDatabase;
+ } else if (event.ctrlKey) {
+ // Ctrl=创建副本
+ action = window.siyuan.languages.duplicate;
} else if (event.altKey) {
// 编辑器内重排:Alt=插入引用,Shift=嵌入块,默认=移动
action = window.siyuan.languages.dragTipRef;