]> git.smokeofanarchy.ru Git - space-station-14.git/commitdiff
Fix warning spam from ShortKeyName (#42351)
authorPieter-Jan Briers <pieterjan.briers+git@gmail.com>
Sun, 11 Jan 2026 00:46:54 +0000 (01:46 +0100)
committerGitHub <noreply@github.com>
Sun, 11 Jan 2026 00:46:54 +0000 (00:46 +0000)
Content.Client/UserInterface/BoundKeyHelpers.cs

index a4a09a4507a291f60ebac2c21aed1f2413c891a0..ce4e5d1f460409a8d2089f479e4c357c75e251a9 100644 (file)
@@ -10,7 +10,7 @@ public static class BoundKeyHelper
     public static string ShortKeyName(BoundKeyFunction keyFunction)
     {
         // need to use shortened key names so they fit in the buttons.
-        return TryGetShortKeyName(keyFunction, out var name) ? Loc.GetString(name) : " ";
+        return TryGetShortKeyName(keyFunction, out var name) ? name : " ";
     }
 
     public static bool IsBound(BoundKeyFunction keyFunction)