mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-30 21:38:48 +01:00
This commit is contained in:
parent
3897377a31
commit
cb85bb8080
1 changed files with 2 additions and 2 deletions
|
|
@ -1292,7 +1292,7 @@ export const keydown = (protyle: IProtyle, editorElement: HTMLElement) => {
|
|||
return;
|
||||
}
|
||||
|
||||
if (!nodeElement.classList.contains("code-block")) {
|
||||
if (!nodeElement.classList.contains("code-block") && !event.repeat) {
|
||||
const findToolbar = protyle.options.toolbar.find((menuItem: IMenuItem) => {
|
||||
if (!menuItem.hotkey) {
|
||||
return false;
|
||||
|
|
@ -1497,7 +1497,7 @@ export const keydown = (protyle: IProtyle, editorElement: HTMLElement) => {
|
|||
return;
|
||||
}
|
||||
|
||||
if (matchHotKey(window.siyuan.config.keymap.editor.general.duplicate.custom, event)) {
|
||||
if (!event.repeat && matchHotKey(window.siyuan.config.keymap.editor.general.duplicate.custom, event)) {
|
||||
event.preventDefault();
|
||||
event.stopPropagation();
|
||||
let selectsElement: HTMLElement[] = Array.from(protyle.wysiwyg.element.querySelectorAll(".protyle-wysiwyg--select"));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue