Habanero.Faces.Win.ControlMapperStrategyWin.CtlKeyUpHandler C# (CSharp) Метод

CtlKeyUpHandler() защищенный Метод

A handler to deal with the case where a key has been released. If the key is an Enter key, focus moves to the next item in the tab order.
This has been made protected for the purposes of testing. Since the event based testing using NUnitForms does not work on our build server. This method should not be used in normal production code.
protected CtlKeyUpHandler ( object sender, KeyEventArgs e ) : void
sender object The object that notified of the event
e System.Windows.Forms.KeyEventArgs Attached arguments regarding the event
Результат void
        protected void CtlKeyUpHandler(object sender, KeyEventArgs e)
        {
            if (e.KeyCode != Keys.Enter) return;

            if (IsMultiLineTextBox()) return;
            e.Handled = true;
            SetFocusOnNextControl();
        }