Declined
Last Updated: 13 Nov 2015 09:02 by ADMIN
ADMIN
Nikolay
Created on: 27 Sep 2010 11:42
Category: RibbonBar
Type: Bug Report
0
FIX. RadRibbonBar - KeyTips get the focus improperty
Put a textbox and RadRibbonBar on a form with enabled key map. Press Alt + 64. You should get "@" in the textbox. Instead, you get the key tips displayed.

Workaround:
public class MyRadRibbonBar : RadRibbonBar
{
    protected override ComponentInputBehavior CreateBehavior()
    {
        return new MyRibbonBarInputBehavior(this);
    }
 
    public override string ThemeClassName
    {
        get
        {
            return typeof(RadRibbonBar).FullName;
        }
        set
        {
        }
    }
}
 
class MyRibbonBarInputBehavior : RadRibbonBar.RibbonBarInputBehavior
{
    public MyRibbonBarInputBehavior(RadRibbonBar owner)
        : base(owner)
    {
    }
 
    protected override bool SetInternalKeyMapFocus()
    {
        if ((this.Owner as RadRibbonBar).ContainsFocus)
        {
            return base.SetInternalKeyMapFocus();
        }
 
        return false;
    }
}
1 comment
ADMIN
Ralitsa
Posted on: 13 Nov 2015 09:01
The issue is duplicated with feedback item FIX. RadRibbonBar - pressing the alt key takes away the focus from the other controls
Here is the link to item: http://feedback.telerik.com/Project/154/Feedback/Details/127328-fix-radribbonbar-pressing-the-alt-key-takes-away-the-focus-from-the-other-cont