From c25e3028ec6b9850a16b2e35fb357da36cb49355 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=99=88=E6=80=9D=E6=B5=B7?= <1464576565@qq.com> Date: Mon, 11 Aug 2025 16:09:35 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Runtime/UXComponent/UX/UXHotkey.cs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/Runtime/UXComponent/UX/UXHotkey.cs b/Runtime/UXComponent/UX/UXHotkey.cs index 443e1a7..111f85d 100644 --- a/Runtime/UXComponent/UX/UXHotkey.cs +++ b/Runtime/UXComponent/UX/UXHotkey.cs @@ -127,6 +127,7 @@ internal static class UXHotkeyComponent if (registrations.Count == 0) { actionRef.action.Disable(); + _sharedHandlers.Remove(actionId); } switch (pressType) @@ -139,8 +140,6 @@ internal static class UXHotkeyComponent break; } } - - _sharedHandlers.Remove(actionId); } break;