Ejemplo n.º 1
0
        public override void KeyDown(NSEvent theEvent)
        {
            _modifierFlags = theEvent.ModifierFlags;
            if (_unoWindow.IsTextInputActive())
            {
                theEvent.InterpretAsTextEvent().Do(
                    text => _log.Try(() => Bootstrapper.OnTextInput(_unoWindow, text), false),
                    () => { });
            }

            theEvent.InterpretAsKeyEvent().Do(
                key => _log.Try(() => Bootstrapper.OnKeyDown(_unoWindow, (Uno.Platform.Key)key), false),
                () => { });
        }