src/Misc/EFTools/DesignXmlCore/VirtualTreeGrid/UI/VirtualTreeControl.cs
/// <summary>
///     Call this method from the OnKeyDown override in
///     the in place control.
/// </summary>
/// <param name="e">The KeyEventArgs</param>
/// <returns>Returns true if the keystroke was handled, indicating that further processing is not needed.</returns>
Call this method from the OnKeyDown override in
the in place control.
Call this method from the OnKeyDown override in the in place control .
public override sealed bool OnKeyDown(KeyEventArgs e)
            {
                if (Parent != null)
                {
                    if (e.KeyData == Keys.Escape)
                    {
                        Parent.DismissLabelEdit(true, true);
                        e.Handled = true;
                    }
                    else if (e.KeyData == Keys.Enter)
                    {
                        Parent.DismissLabelEdit(false, true);
                        e.Handled = true;
                    }
                    else if (0 != (Flags & VirtualTreeInPlaceControls.ForwardKeyEvents))
                    {
                        Parent.OnKeyDown(e);
                    }
                }
                return e.Handled;
            }
public override sealed bool OnKeyDown ( KeyEventArgs e ) { if ( Parent != null ) { if ( e . KeyData == Keys . Escape ) { Parent . DismissLabelEdit ( true , true ) ; e . Handled = true ; } else if ( e . KeyData == Keys . Enter ) { Parent . DismissLabelEdit ( false , true ) ; e . Handled = true ; } else if ( 0 != ( Flags & VirtualTreeInPlaceControls . ForwardKeyEvents ) ) { Parent . OnKeyDown ( e ) ; } } return e . Handled ; }
Call this method from the OnKeyDown override in
the in place control.
Call this method from the OnKeyDown override in the in place control .
Returns true if the keystroke was handled, indicating that further processing is not needed.
Returns true if the keystroke was handled indicating that further processing is not needed .
e
KeyEventArgs
None