diff --git a/Resources/Locale/en-US/input.ftl b/Resources/Locale/en-US/input.ftl index f67bd2c4a..de7d1f832 100644 --- a/Resources/Locale/en-US/input.ftl +++ b/Resources/Locale/en-US/input.ftl @@ -68,6 +68,7 @@ input-key-MouseButton6 = Mouse 6 input-key-MouseButton7 = Mouse 7 input-key-MouseButton8 = Mouse 8 input-key-MouseButton9 = Mouse 9 +input-key-CapsLock = Caps Lock input-key-LSystem-win = Left Win input-key-RSystem-win = Right Win diff --git a/Resources/Locale/pt-BR/input.ftl b/Resources/Locale/pt-BR/input.ftl index ce061acb4..90c5ea153 100644 --- a/Resources/Locale/pt-BR/input.ftl +++ b/Resources/Locale/pt-BR/input.ftl @@ -43,6 +43,7 @@ input-key-MouseButton6 = Mouse 6 input-key-MouseButton7 = Mouse 7 input-key-MouseButton8 = Mouse 8 input-key-MouseButton9 = Mouse 9 +input-key-CapsLock = Caps Lock input-key-LSystem-win = Left Win input-key-RSystem-win = Right Win diff --git a/Robust.Client/Graphics/Clyde/Windowing/Glfw.Keys.cs b/Robust.Client/Graphics/Clyde/Windowing/Glfw.Keys.cs index 884085434..6ce2cf260 100644 --- a/Robust.Client/Graphics/Clyde/Windowing/Glfw.Keys.cs +++ b/Robust.Client/Graphics/Clyde/Windowing/Glfw.Keys.cs @@ -219,6 +219,7 @@ namespace Robust.Client.Graphics.Clyde {GlfwKey.F24, Key.F24}, {GlfwKey.Pause, Key.Pause}, {GlfwKey.World1, Key.World1}, + {GlfwKey.CapsLock, Key.CapsLock} }.ToFrozenDictionary(); var keyMapReverse = new Dictionary(); diff --git a/Robust.Client/Graphics/Clyde/Windowing/Sdl3.Key.cs b/Robust.Client/Graphics/Clyde/Windowing/Sdl3.Key.cs index 3454b5394..18e9f79dd 100644 --- a/Robust.Client/Graphics/Clyde/Windowing/Sdl3.Key.cs +++ b/Robust.Client/Graphics/Clyde/Windowing/Sdl3.Key.cs @@ -203,6 +203,7 @@ internal partial class Clyde MapKey(SC.SDL_SCANCODE_F23, Key.F23); MapKey(SC.SDL_SCANCODE_F24, Key.F24); MapKey(SC.SDL_SCANCODE_PAUSE, Key.Pause); + MapKey(SC.SDL_SCANCODE_CAPSLOCK, Key.CapsLock); var keyMapReverse = new Dictionary(); diff --git a/Robust.Client/Input/InputDevices.cs b/Robust.Client/Input/InputDevices.cs index b520121dd..abed7da74 100644 --- a/Robust.Client/Input/InputDevices.cs +++ b/Robust.Client/Input/InputDevices.cs @@ -173,6 +173,7 @@ namespace Robust.Client.Input F24, Pause, World1, + CapsLock, } public static bool IsMouseKey(this Key key)