🐛 Fix Linux key paste issue in tab

This commit is contained in:
Menghuan1918 2024-12-07 21:07:50 +08:00
parent 88445d5a6c
commit 3673a01ac5

View file

@ -101,6 +101,10 @@ export class Wnd {
window.siyuan.menus.menu.remove();
event.stopPropagation();
event.preventDefault();
// 阻止 Linux 中键粘贴
setTimeout(() => {
window.getSelection().removeAllRanges();
});
break;
}
target = target.parentElement;