src/Misc/EFTools/DesignXmlCore/Base/Shell/TreeGridDesignerInPlaceEdit.cs
/// <summary>
///     Pass KeyPress events on to the parent control for special handling
/// </summary>
/// <param name="e"></param>
Pass KeyPress events on to the parent control for special handling
Pass KeyPress events on to the parent control for special handling
protected override void OnKeyPress(KeyPressEventArgs e)
        {
            base.OnKeyPress(e);
            if (!e.Handled)
            {
                var parent = Parent as TreeGridDesignerTreeControl;
                Debug.Assert(parent != null, "parent of TreeGridDesignerInPlaceEdit must be TreeGridDesignerTreeControl");
                if (parent != null)
                {
                    e.Handled = (ProcessKeyReturn.NotHandled != parent.ProcessKeyPress(e.KeyChar, ModifierKeys));
                }
            }
        }
protected override void OnKeyPress ( KeyPressEventArgs e ) { base . OnKeyPress ( e ) ; if ( ! e . Handled ) { var parent = Parent as TreeGridDesignerTreeControl ; Debug . Assert ( parent != null , " " ) ; if ( parent != null ) { e . Handled = ( ProcessKeyReturn . NotHandled != parent . ProcessKeyPress ( e . KeyChar , ModifierKeys ) ) ; } } }
Pass KeyPress events on to the parent control for special handling
Pass KeyPress events on to the parent control for special handling
e
KeyPressEventArgs
None