mirror of
https://github.com/ppy/osu.git
synced 2025-01-28 02:02:53 +08:00
Assuming its still set to tab, removes binding for toggle chat so itll be set to the new default
This commit is contained in:
parent
426bc52fd5
commit
5443f89dca
@ -1020,8 +1020,14 @@ namespace osu.Game.Database
|
||||
|
||||
case 33:
|
||||
{
|
||||
var oldKeyBinds = migration.NewRealm.All<RealmKeyBinding>();
|
||||
var newKeyBinds = migration.NewRealm.All<RealmKeyBinding>();
|
||||
// Get all current keybinds, and find the toggle chat bind
|
||||
// (by default it used to overlap the new toggle leaderboard)
|
||||
var newKeyBindings = migration.NewRealm.All<RealmKeyBinding>().ToList();
|
||||
var toggleChatBind = newKeyBindings.FirstOrDefault(bind => bind.ActionInt == (int)GlobalAction.ToggleChatFocus);
|
||||
|
||||
// If we have a bind for it, and that bind is tab, remove it
|
||||
if (toggleChatBind != default && toggleChatBind.KeyCombination.Keys.SequenceEqual(new[] { InputKey.Tab }))
|
||||
migration.NewRealm.Remove(toggleChatBind);
|
||||
|
||||
break;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user