fix
This commit is contained in:
parent
c25e3028ec
commit
d840d92225
@ -116,7 +116,7 @@ internal static class UXHotkeyComponent
|
|||||||
{
|
{
|
||||||
hotkeyInfo = registrations[i];
|
hotkeyInfo = registrations[i];
|
||||||
registrations.RemoveAt(i);
|
registrations.RemoveAt(i);
|
||||||
_hotkeyRegistry.Remove(actionId);
|
|
||||||
if (_sharedHandlers.TryGetValue(actionId, out var handlerInfo))
|
if (_sharedHandlers.TryGetValue(actionId, out var handlerInfo))
|
||||||
{
|
{
|
||||||
var (handler, pressType) = handlerInfo;
|
var (handler, pressType) = handlerInfo;
|
||||||
@ -128,6 +128,7 @@ internal static class UXHotkeyComponent
|
|||||||
{
|
{
|
||||||
actionRef.action.Disable();
|
actionRef.action.Disable();
|
||||||
_sharedHandlers.Remove(actionId);
|
_sharedHandlers.Remove(actionId);
|
||||||
|
_hotkeyRegistry.Remove(actionId);
|
||||||
}
|
}
|
||||||
|
|
||||||
switch (pressType)
|
switch (pressType)
|
||||||
|
Loading…
Reference in New Issue
Block a user