fixed
This commit is contained in:
parent
374ca27949
commit
c19ac158f9
@ -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;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user