src/Misc/EFTools/DesignXmlCore/Base/Shell/TreeGridDesignerInPlaceEditCombo.cs
/// <summary>
///     Pass KeyDown events on to the parent control for special handling
/// </summary>
/// <param name="e"></param>
Pass KeyDown events on to the parent control for special handling
Pass KeyDown events on to the parent control for special handling
protected override void OnEditKeyDown(KeyEventArgs e)
        {
            var parent = Parent as TreeGridDesignerTreeControl;
            Debug.Assert(parent != null, "parent of TreeGridDesignerInPlaceEdit must be TreeGridDesignerTreeControl");
            if (parent != null
                && e.KeyCode != Keys.Up
                && e.KeyCode != Keys.Down)
            {
                e.Handled = (ProcessKeyReturn.NotHandled != parent.ProcessKeyDown(e));
            }
            if (!e.Handled)
            {
                base.OnEditKeyDown(e);
            }
        }
protected override void OnEditKeyDown ( KeyEventArgs e ) { var parent = Parent as TreeGridDesignerTreeControl ; Debug . Assert ( parent != null , " " ) ; if ( parent != null && e . KeyCode != Keys . Up && e . KeyCode != Keys . Down ) { e . Handled = ( ProcessKeyReturn . NotHandled != parent . ProcessKeyDown ( e ) ) ; } if ( ! e . Handled ) { base . OnEditKeyDown ( e ) ; } }
Pass KeyDown events on to the parent control for special handling
Pass KeyDown events on to the parent control for special handling
// allow Up/Down to go straight to the edit control.  These will change selection // in the list box.
e
KeyEventArgs
None