This commit is contained in:
陈思海 2025-08-11 16:04:01 +08:00
parent 374ca27949
commit c19ac158f9

View File

@ -115,6 +115,8 @@ internal static class UXHotkeyComponent
if (registrations[i].button == button)
{
hotkeyInfo = registrations[i];
registrations.RemoveAt(i);
_hotkeyRegistry.Remove(actionId);
if (_sharedHandlers.TryGetValue(actionId, out var handlerInfo))
{
var (handler, pressType) = handlerInfo;
@ -141,8 +143,6 @@ internal static class UXHotkeyComponent
_sharedHandlers.Remove(actionId);
}
registrations.RemoveAt(i);
_hotkeyRegistry.Remove(actionId);
break;
}
}