mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-02-15 11:38:06 +01:00
This commit is contained in:
parent
1cba50d880
commit
66b6bf4dd5
2 changed files with 11 additions and 1 deletions
|
|
@ -449,6 +449,15 @@ const editKeydown = (app: App, event: KeyboardEvent) => {
|
|||
event.preventDefault();
|
||||
return true;
|
||||
}
|
||||
if (matchHotKey(window.siyuan.config.keymap.editor.general.duplicateCompletely.custom, event)) {
|
||||
const nodeElement = hasClosestBlock(range.startContainer);
|
||||
if (!nodeElement || !nodeElement.classList.contains("av")) {
|
||||
return false;
|
||||
}
|
||||
duplicateCompletely(protyle, nodeElement);
|
||||
event.preventDefault();
|
||||
return true;
|
||||
}
|
||||
if (matchHotKey(window.siyuan.config.keymap.editor.general.refresh.custom, event)) {
|
||||
reloadProtyle(protyle, true);
|
||||
event.preventDefault();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue