From 3673a01ac5f9830230786757f3166c4edf3f4122 Mon Sep 17 00:00:00 2001 From: Menghuan1918 Date: Sat, 7 Dec 2024 21:07:50 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20Fix=20Linux=20key=20paste=20issu?= =?UTF-8?q?e=20in=20tab?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/src/layout/Wnd.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/app/src/layout/Wnd.ts b/app/src/layout/Wnd.ts index 8f451af8e8f..081ea99c424 100644 --- a/app/src/layout/Wnd.ts +++ b/app/src/layout/Wnd.ts @@ -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;