Exemple #1
0
        private bool globalHotkeyPressed(InputState state, KeyDownEventArgs args)
        {
            switch (args.Key)
            {
            case Key.F8:
                Chat.ToggleVisibility();
                return(true);
            }

            return(base.OnKeyDown(state, args));
        }
Exemple #2
0
        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));
        }