🐛 Fix Linux key paste issue in tab
This commit is contained in:
parent
88445d5a6c
commit
3673a01ac5
1 changed files with 4 additions and 0 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Reference in a new issue