private bool globalHotkeyPressed(InputState state, KeyDownEventArgs args) { switch (args.Key) { case Key.F8: Chat.ToggleVisibility(); return(true); } return(base.OnKeyDown(state, args)); }
private bool globalHotkeyPressed(InputState state, KeyDownEventArgs args) { switch (args.Key) { case Key.F8: chat.ToggleVisibility(); return(true); } if (state.Keyboard.ControlPressed) { switch (args.Key) { case Key.O: Options.ToggleVisibility(); return(true); } } return(base.OnKeyDown(state, args)); }