Example #1
0
        /// -----------------------------------------------------------------------------------
        /// <summary>
        /// Handle a key press.
        /// </summary>
        /// <param name="keyChar">The pressed character key</param>
        /// -----------------------------------------------------------------------------------
        public void HandleKeyPress(char keyChar)
        {
            CheckDisposed();

            using (new HoldGraphics(this))
            {
                EditingHelper.HandleKeyPress(keyChar, ModifierKeys);
            }
        }
Example #2
0
        /// -----------------------------------------------------------------------------------
        /// <summary>
        /// Handle a key press.
        /// </summary>
        /// <param name="keyChar">The pressed character key</param>
        /// <param name="fCalledFromKeyDown">true if this method gets called from OnKeyDown
        /// (to handle Delete)</param>
        /// -----------------------------------------------------------------------------------
        public void HandleKeyPress(char keyChar, bool fCalledFromKeyDown)
        {
            CheckDisposed();

            using (new HoldGraphics(this))
            {
                EditingHelper.HandleKeyPress(keyChar, fCalledFromKeyDown, ModifierKeys,
                                             m_graphicsManager.VwGraphics);
            }
        }
Example #3
0
 /// ------------------------------------------------------------------------------------
 /// <summary>
 /// Handle a key press.
 /// </summary>
 /// <param name="keyChar">The pressed character key</param>
 /// <param name="fCalledFromKeyDown">true if this method gets called from OnKeyDown
 /// (to handle Delete)</param>
 /// <param name="modifiers">key modifies - shift status, etc.</param>
 /// <param name="graphics">graphics object for process input</param>
 /// ------------------------------------------------------------------------------------
 public override void HandleKeyPress(char keyChar, bool fCalledFromKeyDown,
                                     Keys modifiers, IVwGraphics graphics)
 {
     if (m_decoratedEditingHelper != null)
     {
         m_decoratedEditingHelper.HandleKeyPress(keyChar, fCalledFromKeyDown, modifiers, graphics);
     }
     else
     {
         base.HandleKeyPress(keyChar, fCalledFromKeyDown, modifiers, graphics);
     }
 }