KeyTipService blocking Alt + Key Code

4 posts, 0 answers
  1. Gary
    Gary avatar
    30 posts
    Member since:
    Jun 2009

    Posted 04 Mar 2015 Link to this post

    We have KeyTipService enabled on our RadRibbonView.  Some of our users want to use Alt + Key Code (example Alt + 132) to insert special characters when typing into a textbox.  The problem is RadRibbonView is trapping the Alt command when used this way.  

    Compare to an application like MS Word 2013.  Just hitting Alt and releasing brings up the key hints for navigating the ribbon.  Hitting Alt + 132 enters an "ä".  With RadRibbonView, hitting Alt even if combined with other keys always brings up the hint text and prevents default behavior of the textbox. 

    Is there a way to prevent this?
  2. Kiril Vandov
    Admin
    Kiril Vandov avatar
    324 posts

    Posted 09 Mar 2015 Link to this post

    Hello Gary,

    Unfortunately this feature is not available with our RadRibbonView. The current implementation of the KeyTips focuses the RadRibbonView to prevent any input while navigating using the KeyTips. You could prevent the focus lost if you set Focusable="false" to the RadRibbonView, however the textbox will still not be able to type the symbol for "Alt + 132" as the KeyUp events are handled and the symbols are evaluated on KeyUp.

    Kind regards,
    Kiril Vandov
    Telerik
     

    Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

     
  3. UI for WPF is Visual Studio 2017 Ready
  4. Gary
    Gary avatar
    1 posts
    Member since:
    Mar 2015

    Posted 10 Mar 2015 in reply to Kiril Vandov Link to this post

    Shouldn't Telerik's implementation only capture focus and key events if Alt is hit by itself?  For instance, Alt hit and released, then capture key up events to see if matches a keytip.  If Alt + Key is pressed, then ignore and let underlying control handle it.  
  5. Kiril Vandov
    Admin
    Kiril Vandov avatar
    324 posts

    Posted 11 Mar 2015 Link to this post

    Hello Gary,

    The logic behind the KeyTips is a little more complex than that. When you release the Alt key (which is your case) the KeyTips of the RadRibbonView are shown as LeftAlt is the activation key for the KeyTips. The MS office KeyTips behave a little differently (they show up on KeyDown), we are aware of that difference and have a feature request to allow the RibbonViewKeyTips to be activated on KeyUp.
    Also after your report we have further investigate the entire behavior of the MS Word KeyTips and we have found that while the Alt key is pressed and type any key from the NumPad keyboard the KeyTips are canceled and the special symbols are executed.

    We will consider this improvements to the KeyTips as they will make the user experience more fluent and MS Office like. That is why I have logged that as a feature request for our RadRibbonView and you could track its progress in our feedback portal.

    I hope this information helps.

    Kind regards,
    Kiril Vandov
    Telerik
     

    Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

     
Back to Top