Exemple #1
0
        /// <summary>
        /// Disallows any/all TabFastedit keystrokes - typically <c>[Up]</c>,
        /// <c>[Down]</c>, <c>[PageUp]</c>, and <c>[PageDown]</c> - for textbox
        /// navigation on this <c>YataEditbox</c>.
        /// </summary>
        /// <param name="keyData"></param>
        /// <returns></returns>
        /// <remarks><c>[Up]</c>, <c>[Down]</c>, <c>[PageUp]</c>, and
        /// <c>[PageDown]</c> shall be used for TabFastedit by
        /// <c><see cref="YataGrid._editor">YataGrid._editor</see></c> and/or
        /// <c><see cref="Propanel._editor">Propanel._editor</see></c>.</remarks>
        /// <remarks>TAB, RETURN, ESC, and the UP ARROW, DOWN ARROW, LEFT ARROW,
        /// and RIGHT ARROW. kL_note: Also PageUp/Down what else you gnits.</remarks>
        protected override bool IsInputKey(Keys keyData)
        {
#if Keys
            if ((keyData & ~gc.ControlShift) != 0)
            {
                logfile.Log("YataEditbox.IsInputKey() keyData= " + keyData);
            }
#endif
            if (YataGrid.IsTabfasteditKey(keyData))
            {
                // return FALSE to disable use of these keystrokes in the
                // textbox, thereby allowing them for use by
                // - ProcessCmdKey (as long as 'e.IsInputKey' was *not* set TRUE in OnPreviewKeyDown())
                // - ProcessDialogKey
                //
                // Note that a return of FALSE bypasses the KeyDown/Up events;
                // ie, handle the keystroke in Process*Key() funct(s).
#if Keys
                logfile.Log(". YataEditbox.IsInputKey force FALSE (TabFastedit)");
#endif
                return(false);
            }

            bool ret = base.IsInputKey(keyData);
#if Keys
            if ((keyData & ~gc.ControlShift) != 0)
            {
                logfile.Log(". YataEditbox.IsInputKey ret= " + ret);
            }
#endif
            return(ret);
        }