ComponentFactory.Krypton.Ribbon.AppButtonController.KeyTipSelect C# (CSharp) Method

KeyTipSelect() public method

Perform actual selection of the item.
public KeyTipSelect ( KryptonRibbon ribbon ) : void
ribbon KryptonRibbon Reference to owning ribbon instance.
return void
        public void KeyTipSelect(KryptonRibbon ribbon)
        {
            // We leave key tips usage whenever we use the application button
            ribbon.KillKeyboardKeyTips();

            // Show the button as pressed, until told otherwise
            _fixedPressed = true;

            // Mouse is being pressed
            UpdateTargetState();

            // Switch focus to ourself
            ribbon.FocusView =  ribbon.TabsArea.LayoutAppButton.AppButton;

            // Generate a click event
            _keyboard = true;
            OnClick(new MouseEventArgs(MouseButtons.Left, 1, 0, 0, 0));
        }