From 8fd5f04ecd730bf4bc73fe72c1ce9281a572ca4c Mon Sep 17 00:00:00 2001 From: molvqingtai Date: Sat, 28 Sep 2024 18:15:18 +0800 Subject: [PATCH] perf: add isolate events --- src/app/content/index.tsx | 1 + 1 file changed, 1 insertion(+) diff --git a/src/app/content/index.tsx b/src/app/content/index.tsx index 3918ef3..84edba5 100644 --- a/src/app/content/index.tsx +++ b/src/app/content/index.tsx @@ -32,6 +32,7 @@ export default defineContentScript({ anchor: 'body', append: 'last', mode: 'open', + isolateEvents: ['keyup', 'keydown', 'keypress'], onMount: (container) => { const app = createElement('
') container.append(app)