Ejemplo n.º 1
0
        public void InvokeKeyPress(KeyPressEventArgsExt e)
        {
            var handler = KeyPress;

            if (handler == null || e.Handled || e.IsNonChar)
            {
                return;
            }
            handler(this, e);
            _logger.LogInformation(new String('\t', _indentCounter) + e.ToString());
        }
Ejemplo n.º 2
0
        public void InvokeKeyPress(KeyPressEventArgsExt e)
        {
            var handler = KeyPress;

            if (DisablePressEvent)
            {
                _logger.LogDebug("this KeyPress event disabled");
                return;
            }

            if (handler == null || e.Handled || e.IsNonChar)
            {
                return;
            }

            handler(this, e);
            _logger.LogDebug(new String('\t', _indentCounter) + e.ToString());
        }