Skip to content

Commit 899eef3

Browse files
authored
Make Caps Lock bindable (space-wizards#6308)
1 parent 6aa4fb9 commit 899eef3

5 files changed

Lines changed: 5 additions & 0 deletions

File tree

Resources/Locale/en-US/input.ftl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,7 @@ input-key-MouseButton6 = Mouse 6
6868
input-key-MouseButton7 = Mouse 7
6969
input-key-MouseButton8 = Mouse 8
7070
input-key-MouseButton9 = Mouse 9
71+
input-key-CapsLock = Caps Lock
7172
7273
input-key-LSystem-win = Left Win
7374
input-key-RSystem-win = Right Win

Resources/Locale/pt-BR/input.ftl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@ input-key-MouseButton6 = Mouse 6
4343
input-key-MouseButton7 = Mouse 7
4444
input-key-MouseButton8 = Mouse 8
4545
input-key-MouseButton9 = Mouse 9
46+
input-key-CapsLock = Caps Lock
4647
4748
input-key-LSystem-win = Left Win
4849
input-key-RSystem-win = Right Win

Robust.Client/Graphics/Clyde/Windowing/Glfw.Keys.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -219,6 +219,7 @@ static GlfwWindowingImpl()
219219
{GlfwKey.F24, Key.F24},
220220
{GlfwKey.Pause, Key.Pause},
221221
{GlfwKey.World1, Key.World1},
222+
{GlfwKey.CapsLock, Key.CapsLock}
222223
}.ToFrozenDictionary();
223224

224225
var keyMapReverse = new Dictionary<Key, GlfwKey>();

Robust.Client/Graphics/Clyde/Windowing/Sdl3.Key.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -203,6 +203,7 @@ static Sdl3WindowingImpl()
203203
MapKey(SC.SDL_SCANCODE_F23, Key.F23);
204204
MapKey(SC.SDL_SCANCODE_F24, Key.F24);
205205
MapKey(SC.SDL_SCANCODE_PAUSE, Key.Pause);
206+
MapKey(SC.SDL_SCANCODE_CAPSLOCK, Key.CapsLock);
206207

207208
var keyMapReverse = new Dictionary<Key, SC>();
208209

Robust.Client/Input/InputDevices.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -173,6 +173,7 @@ public enum Key : byte
173173
F24,
174174
Pause,
175175
World1,
176+
CapsLock,
176177
}
177178

178179
public static bool IsMouseKey(this Key key)

0 commit comments

Comments
 (0)