Alt + ?

7 posts, 0 answers
  1. Andrés David Santacoloma Isaza
    Andrés David Santacoloma Isaza avatar
    51 posts
    Member since:
    Mar 2010

    Posted 21 Sep 2010 Link to this post

    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
  2. Richard Slade
    Richard Slade avatar
    3000 posts
    Member since:
    May 2009

    Posted 23 Sep 2010 Link to this post

    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
  3. UI for WinForms is Visual Studio 2017 Ready
  4. Andrés David Santacoloma Isaza
    Andrés David Santacoloma Isaza avatar
    51 posts
    Member since:
    Mar 2010

    Posted 23 Sep 2010 Link to this post

    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
  5. Richard Slade
    Richard Slade avatar
    3000 posts
    Member since:
    May 2009

    Posted 23 Sep 2010 Link to this post

    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. 
  6. Nikolay
    Admin
    Nikolay avatar
    1804 posts

    Posted 27 Sep 2010 Link to this post

    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
  7. Daniel
    Daniel avatar
    17 posts
    Member since:
    Oct 2013

    Posted 01 May 2014 Link to this post

    Is this issue has been resolved?
  8. George
    Admin
    George avatar
    500 posts

    Posted 02 May 2014 Link to this post

    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.
     
Back to Top
UI for WinForms is Visual Studio 2017 Ready