Esempio n. 1
0
        public override void KeyUp(NSEvent theEvent)
        {
            base.KeyUp(theEvent);

            if (FinisherKeys.Contains(theEvent.KeyCode))
            {
                FinishInput?.Invoke(this, EventArgs.Empty);
            }
        }
Esempio n. 2
0
        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);
            }
        }