Esempio n. 1
0
        private void KeyboardKeyUp(object sender, KeyboardKeyEventArgs args)
        {
            KeyboardEventArgs kbArgs = args.ConvertKeyboardEvents();

            _keyModifier = kbArgs.Modifier;
            if (kbArgs.None)
            {
                return;
            }
            _runtime.InvokeKeyboardUp(kbArgs);
        }
Esempio n. 2
0
        private void KeyboardKeyDown(object sender, KeyboardKeyEventArgs args)
        {
            KeyboardEventArgs kbArgs = args.ConvertKeyboardEvents();

            _keyModifier = kbArgs.Modifier;
            if (kbArgs.None)
            {
                return;
            }

            if (kbArgs[CMod.Alt, CKey.Enter])
            {
                if (!args.IsRepeat)
                {
                    ToggleFullscreen();
                }
                return;
            }

            _runtime.InvokeKeyboardDown(kbArgs);
        }