🐛 数据库搜索复制粘贴无效

This commit is contained in:
Vanessa 2024-03-13 15:41:10 +08:00
parent 62780aed7e
commit c0a1e2420b

View file

@ -240,7 +240,7 @@ export class WYSIWYG {
this.element.addEventListener("copy", (event: ClipboardEvent & { target: HTMLElement }) => {
window.siyuan.ctrlIsPressed = false; // https://github.com/siyuan-note/siyuan/issues/6373
// https://github.com/siyuan-note/siyuan/issues/4600
if (event.target.tagName === "PROTYLE-HTML") {
if (event.target.tagName === "PROTYLE-HTML" || event.target.localName === "input") {
event.stopPropagation();
return;
}
@ -1255,7 +1255,7 @@ export class WYSIWYG {
if (protyle.disabled) {
return;
}
if (event.target.tagName === "PROTYLE-HTML") {
if (event.target.tagName === "PROTYLE-HTML" || event.target.localName === "input") {
event.stopPropagation();
return;
}
@ -1714,7 +1714,7 @@ export class WYSIWYG {
}
window.siyuan.ctrlIsPressed = false; // https://github.com/siyuan-note/siyuan/issues/6373
// https://github.com/siyuan-note/siyuan/issues/4600
if (event.target.tagName === "PROTYLE-HTML") {
if (event.target.tagName === "PROTYLE-HTML" || event.target.localName === "input") {
event.stopPropagation();
return;
}