This commit is contained in:
陈思海 2025-08-11 16:19:19 +08:00
parent c25e3028ec
commit d840d92225

View File

@ -116,7 +116,7 @@ internal static class UXHotkeyComponent
{
hotkeyInfo = registrations[i];
registrations.RemoveAt(i);
_hotkeyRegistry.Remove(actionId);
if (_sharedHandlers.TryGetValue(actionId, out var handlerInfo))
{
var (handler, pressType) = handlerInfo;
@ -128,6 +128,7 @@ internal static class UXHotkeyComponent
{
actionRef.action.Disable();
_sharedHandlers.Remove(actionId);
_hotkeyRegistry.Remove(actionId);
}
switch (pressType)