Skip to content

Commit 7717336

Browse files
committed
🎨 Improve the tooltip displayed when dragging a block #14034
Signed-off-by: Daniel <845765@qq.com>
1 parent 8422a9b commit 7717336

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

app/src/protyle/util/editorCommonEvent.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1578,6 +1578,9 @@ export const dropEvent = (protyle: IProtyle, editorElement: HTMLElement) => {
15781578
if (isAvTarget) {
15791579
// 拖到数据库视图:绑定为记录
15801580
action = window.siyuan.languages.addToDatabase;
1581+
} else if (event.ctrlKey) {
1582+
// Ctrl=创建副本
1583+
action = window.siyuan.languages.duplicate;
15811584
} else if (event.altKey) {
15821585
// 编辑器内重排:Alt=插入引用,Shift=嵌入块,默认=移动
15831586
action = window.siyuan.languages.dragTipRef;

0 commit comments

Comments
 (0)