void HandleHotkey(Key key) { string text; bool more; if (Hotkeys.IsHotkey(key, game.Keyboard, out text, out more)) { if (!more) { game.Network.SendChat(text, false); } else if (game.activeScreen == null) { game.hudScreen.OpenTextInputBar(text); } } }
void HandleHotkey(Key key) { string text; bool more; if (!Hotkeys.IsHotkey(key, game.Input, out text, out more)) { return; } if (!more) { game.Server.SendChat(text); } else if (game.Gui.activeScreen == null) { game.Gui.hudScreen.OpenInput(text); } }