From f7a1ffd0aab25d70ac185753d596469fc1e87480 Mon Sep 17 00:00:00 2001 From: "Wrexbe (Josh)" <81056464+wrexbe@users.noreply.github.com> Date: Sun, 24 Mar 2024 11:25:04 -0700 Subject: [PATCH] Store keybind priority (#26356) * Fix saving keybind priority * Change movestoreditem keybind priority to prevent bug --------- Co-authored-by: wrexbe --- Content.Client/Options/UI/Tabs/KeyRebindTab.xaml.cs | 2 +- Resources/keybinds.yml | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/Content.Client/Options/UI/Tabs/KeyRebindTab.xaml.cs b/Content.Client/Options/UI/Tabs/KeyRebindTab.xaml.cs index ce5cf421ae..f0537079b9 100644 --- a/Content.Client/Options/UI/Tabs/KeyRebindTab.xaml.cs +++ b/Content.Client/Options/UI/Tabs/KeyRebindTab.xaml.cs @@ -403,7 +403,7 @@ namespace Content.Client.Options.UI.Tabs Mod1 = mods[0], Mod2 = mods[1], Mod3 = mods[2], - Priority = 0, + Priority = _currentlyRebinding.Binding?.Priority ?? 0, Type = bindType, CanFocus = key == Keyboard.Key.MouseLeft || key == Keyboard.Key.MouseRight diff --git a/Resources/keybinds.yml b/Resources/keybinds.yml index b8cfc40c1c..346156159a 100644 --- a/Resources/keybinds.yml +++ b/Resources/keybinds.yml @@ -167,6 +167,7 @@ binds: type: State key: MouseLeft canFocus: true + priority: 10 - function: RotateStoredItem type: State key: MouseRight -- 2.51.2