Skip to content

Commit

Permalink
🐛 Fix Linux key paste issue in tab
Browse files Browse the repository at this point in the history
  • Loading branch information
Menghuan1918 committed Dec 7, 2024
1 parent 88445d5 commit 3673a01
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions app/src/layout/Wnd.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 3673a01

Please sign in to comment.