Skip to content
Open
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions Robust.Client/Input/InputDevices.cs
Original file line number Diff line number Diff line change
Expand Up @@ -174,6 +174,7 @@ public enum Key : byte
Pause,
World1,
CapsLock,
AltGr
}

public static bool IsMouseKey(this Key key)
Expand Down
7 changes: 7 additions & 0 deletions Robust.Client/Input/InputManager.cs
Original file line number Diff line number Diff line change
Expand Up @@ -231,6 +231,13 @@ public void KeyDown(KeyEventArgs args)

_keysPressed[(int)args.Key] = true;

if (_keysPressed[(int)Key.Alt] && _keysPressed[(int)Key.Control])
{
_keysPressed[(int)Key.Alt] = false;
_keysPressed[(int)Key.Control] = false;
_keysPressed[(int)Key.AltGr] = true;
}

PackedKeyCombo matchedCombo = default;

var bindsDown = new List<KeyBinding>();
Expand Down
Loading