From: Pieter-Jan Briers Date: Sun, 11 Jan 2026 00:46:54 +0000 (+0100) Subject: Fix warning spam from ShortKeyName (#42351) X-Git-Url: https://git.smokeofanarchy.ru/gitweb.cgi?a=commitdiff_plain;h=c0fbaf1228f04acd6d2a150854461a3ca95178ca;p=space-station-14.git Fix warning spam from ShortKeyName (#42351) --- diff --git a/Content.Client/UserInterface/BoundKeyHelpers.cs b/Content.Client/UserInterface/BoundKeyHelpers.cs index a4a09a4507..ce4e5d1f46 100644 --- a/Content.Client/UserInterface/BoundKeyHelpers.cs +++ b/Content.Client/UserInterface/BoundKeyHelpers.cs @@ -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)