From 54645b4adfcf81e4d0eb8ef096935bca16d1163c Mon Sep 17 00:00:00 2001 From: PJB3005 Date: Sun, 17 Aug 2025 16:24:04 +0200 Subject: [PATCH] Use fancy mac symbols for key names --- Resources/Locale/en-US/input.ftl | 5 +++-- Robust.Client/Input/InputDevices.cs | 7 +++++++ 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/Resources/Locale/en-US/input.ftl b/Resources/Locale/en-US/input.ftl index 61dbb550b..f67bd2c4a 100644 --- a/Resources/Locale/en-US/input.ftl +++ b/Resources/Locale/en-US/input.ftl @@ -2,6 +2,7 @@ input-key-Escape = Escape input-key-Control = Control input-key-Shift = Shift input-key-Alt = Alt +input-key-Alt-mac = ⌥ input-key-Menu = Menu input-key-F1 = F1 input-key-F2 = F2 @@ -70,8 +71,8 @@ input-key-MouseButton9 = Mouse 9 input-key-LSystem-win = Left Win input-key-RSystem-win = Right Win -input-key-LSystem-mac = Left Cmd -input-key-RSystem-mac = Right Cmd +input-key-LSystem-mac = Left ⌘ +input-key-RSystem-mac = Right ⌘ input-key-LSystem-linux = Left Meta input-key-RSystem-linux = Right Meta diff --git a/Robust.Client/Input/InputDevices.cs b/Robust.Client/Input/InputDevices.cs index 9a85d0709..b520121dd 100644 --- a/Robust.Client/Input/InputDevices.cs +++ b/Robust.Client/Input/InputDevices.cs @@ -197,6 +197,13 @@ namespace Robust.Client.Input locId += "-linux"; } +#if MACOS + if (key == Key.Alt) + { + locId += "-mac"; + } +#endif + if (loc.TryGetString(locId, out var name)) return name;