From 3e68c8e568b17abaaa46023ee770774ca9f3d4a4 Mon Sep 17 00:00:00 2001 From: Child-qjj <429814031@qq.com> Date: Thu, 30 Oct 2025 21:42:51 +0800 Subject: [PATCH] =?UTF-8?q?fix(shortcut):=20=E4=BF=AE=E6=AD=A3=E5=85=A8?= =?UTF-8?q?=E5=B1=80=E4=BA=8B=E4=BB=B6=E7=9B=91=E5=90=AC=E5=99=A8=E9=94=99?= =?UTF-8?q?=E8=AF=AF=E7=A7=BB=E9=99=A4focus=E4=BA=8B=E4=BB=B6=E7=9A=84?= =?UTF-8?q?=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- packages/g6/src/utils/shortcut.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/g6/src/utils/shortcut.ts b/packages/g6/src/utils/shortcut.ts index 05c727cb982..ebc03856f3d 100644 --- a/packages/g6/src/utils/shortcut.ts +++ b/packages/g6/src/utils/shortcut.ts @@ -130,6 +130,6 @@ export class Shortcut { this.emitter.off(CommonEvent.WHEEL, this.onWheel); this.emitter.off(CommonEvent.DRAG, this.onDrag); this.pinchHandler?.off('pinchmove', this.boundHandlePinch); - globalThis.removeEventListener?.('blur', this.onFocus); + globalThis.removeEventListener?.('focus', this.onFocus); } }