This commit is contained in:
陈思海 2025-09-03 13:43:09 +08:00
parent dab724f74e
commit e95b661d6a

View File

@ -163,12 +163,11 @@ public static class UXButtonHotkeyExtension
button._hotkeyPressType
);
}
}
public static void UnBindHotKey(this UXButton button)
{
if (button == null) return;
if (button == null || button._hotKeyRefrence == null) return;
UXHotkeyComponent.UnregisterHotkey(button);
}
}