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()); }
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()); }