Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
245
ALT doesn't always show ribbon shortcut
posted

Using 19.2, I have an app with a ribbon that has a custom control hosting an UltraTextEditor. When the focus is in this control and the user presses the ALT key sometimes the ribbon shortcuts are not shown, and the application File menu is shown instead (even though Ribbon.FileMenuStyle is set to None)

I have verified that the custom control does receive the WM_SYSKEYDOWN with keyData == Menu | Alt 

I have another app that has a ribbon with no custom controls and it always works as expected (ALT shows ribbon shortcuts).

This seems bug-like, but I'm wondering if there is a way I could just work around it by forcing the shortcuts to appear in the ribbon? Is there even an API to do that?

Parents
No Data
Reply
  • 420
    Offline posted

    Hello Todd,

    In order to address the issue, the problem will need to be consistently reproducible.

    Generally the window menu does not have shortcut by default, and is triggered by mouse right click on top of the window. I can suggest using windows hooks to see if you are not somehow getting additional input. 

    The fact that the commands in the window menu have their shortcuts highlighted does indeed mean that the alt keystroke was registered.

    Is it possible that you set focus of the control by simulating mouse click on it, because mouse click + alt at the same time produces the result shown.

    Please let me know if you have any additional info that could help identify the reason behind this.

    Sincerely,
    Tihomir Tonev
    Associate Software Developer
    Infragistics

Children