This is a migrated thread and some comments may be shown as answers.

Alt + ?

6 Answers 94 Views
TextBox
This is a migrated thread and some comments may be shown as answers.
Andrés David Santacoloma Isaza
Top achievements
Rank 1
Andrés David Santacoloma Isaza asked on 21 Sep 2010, 03:41 PM
Hello:
I have a problem when I want press the key "Alt" + some number.
example: Alt+64 = @
When I press the key "Alt", my textbox lost the focus and I can't place the simbol.
I have in my form a radribbonbar and when I press this key, the focus is placed here.

what's the solution?
thanks

6 Answers, 1 is accepted

Sort by
0
Richard Slade
Top achievements
Rank 2
answered on 23 Sep 2010, 10:06 AM
Are you handling anything else on KeyDown or KeyPress? I have placed a textbox on a form and I can add the @ symbol to the textbox after placing focus on it
0
Andrés David Santacoloma Isaza
Top achievements
Rank 1
answered on 23 Sep 2010, 02:42 PM
Hello:
I think the problem is with the RadRibbonBar, because when I press "Alt" the focus is there, but I don't know control it.
the idea is when i press and release "alt", the focus placed in RadRibbonBar, but when i press "Alt" and with out release it press an ascii code, for example 64 (@), it don't lost the focus.
the text editors work so, for example office word, the textbox in web pages, this box, and I want my textbox work so too.

solution it is very important for me, please answer this issue.
Thanks
0
Richard Slade
Top achievements
Rank 2
answered on 23 Sep 2010, 04:23 PM
It seems that you're right. I think this is a bug that you cannot use the ALT key in conjunction with the other keys in a textbox when a RadRibbonBar is on the form. 
0
Nikolay
Telerik team
answered on 27 Sep 2010, 04:43 PM
Hello guys,

I confirm the focus issue. It will be addressed in one of our next releases. However, I cannot provide you with a workaround for the time being. Andreas, your Telerik points have been updated for the feedback.

Kind regards,
Nikolay
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
0
Daniel
Top achievements
Rank 2
answered on 01 May 2014, 03:59 PM
Is this issue has been resolved?
0
George
Telerik team
answered on 02 May 2014, 12:39 PM
Hi Daniel,

Thank you for replying.

The issue has not been resolved. I have logged it in our Feedback portal and you can find it on the following address: UI for Winforms Feedback Portal - FIX. RadRibbonBar - Pressing the alt key takes away the focus from the other controls. Feel free to add your votes or comments. As a workaround for the time being you can use the following classes:
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;
    }
}

Let me know if you have further questions.

Regards,
George
Telerik
 
Check out Telerik Analytics, the service which allows developers to discover app usage patterns, analyze user data, log exceptions, solve problems and profile application performance at run time. Watch the videos and start improving your app based on facts, not hunches.
 
Tags
TextBox
Asked by
Andrés David Santacoloma Isaza
Top achievements
Rank 1
Answers by
Richard Slade
Top achievements
Rank 2
Andrés David Santacoloma Isaza
Top achievements
Rank 1
Nikolay
Telerik team
Daniel
Top achievements
Rank 2
George
Telerik team
Share this question
or