src/Misc/EFTools/DesignXmlCore/Base/Shell/TreeGridDesignerInPlaceEditCombo.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 OnEditKeyPress(KeyPressEventArgs e)
        {
            var parentControl = Parent;
            var parent = parentControl as TreeGridDesignerTreeControl;
            Debug.Assert(parent != null, "parent of TreeGridDesignerInPlaceEdit must be TreeGridDesignerTreeControl");
            if (parent != null)
            {
                e.Handled = (ProcessKeyReturn.NotHandled != parent.ProcessKeyPress(e.KeyChar, ModifierKeys));
            }
            if (!e.Handled)
            {
                base.OnEditKeyPress(e);
            }
        }
protected override void OnEditKeyPress ( KeyPressEventArgs e ) { var parentControl = Parent ; var parent = parentControl as TreeGridDesignerTreeControl ; Debug . Assert ( parent != null , " " ) ; if ( parent != null ) { e . Handled = ( ProcessKeyReturn . NotHandled != parent . ProcessKeyPress ( e . KeyChar , ModifierKeys ) ) ; } if ( ! e . Handled ) { base . OnEditKeyPress ( e ) ; } }
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