Toggle-able teamchat on shift-enter
This commit is contained in:
committed by
Chris Forbes
parent
ad1af792e6
commit
a904047a16
9
OpenRA.Game/Widgets/ChatEntryWidget.cs
Normal file → Executable file
9
OpenRA.Game/Widgets/ChatEntryWidget.cs
Normal file → Executable file
@@ -81,7 +81,14 @@ namespace OpenRA.Widgets
|
||||
{
|
||||
TakeFocus(new MouseInput());
|
||||
composing = true;
|
||||
teamChat ^= e.Modifiers.HasModifier(Modifiers.Shift);
|
||||
if (Game.Settings.Game.TeamChatToggle)
|
||||
{
|
||||
teamChat ^= e.Modifiers.HasModifier(Modifiers.Shift);
|
||||
}
|
||||
else
|
||||
{
|
||||
teamChat = e.Modifiers.HasModifier(Modifiers.Shift);
|
||||
}
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user