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;