ComponentFactory.Krypton.Toolkit.KryptonColorButton.ProcessMnemonic C# (CSharp) Method

ProcessMnemonic() protected method

Processes a mnemonic character.
protected ProcessMnemonic ( char charCode ) : bool
charCode char The mnemonic character entered.
return bool
        protected override bool ProcessMnemonic(char charCode)
        {
            // Are we allowed to process mnemonics?
            if (UseMnemonic && CanProcessMnemonic())
            {
                // Does the color button primary text contain the mnemonic?
                if (Control.IsMnemonic(charCode, Values.Text))
                {
                    if (!Splitter)
                        PerformDropDown();
                    else
                        PerformClick();
                    return true;
                }
            }

            // No match found, let base class do standard processing
            return base.ProcessMnemonic(charCode);
        }