public override void KeyUp(NSEvent theEvent) { base.KeyUp(theEvent); if (FinisherKeys.Contains(theEvent.KeyCode)) { FinishInput?.Invoke(this, EventArgs.Empty); } }
protected override void OnKeyUp(KeyEventArgs e) { base.OnKeyUp(e); if (e.Key == Key.Escape) { Clear(); } if (FinisherKeys.Contains(e.Key)) { Finish?.Invoke(this, EventArgs.Empty); } }