Add keyboard support for context menu C1Menu

Posted by: tomdofa on 10 September 2017, 11:35 am EST

  • Posted 10 September 2017, 11:35 am EST

    I have the context menu using the C1Menu in UserControl and the menu items are loading from the DB, everything is working great. Except I can not add the keyboard support to it. I read the article "Adding Keyboard Support to C1Menu" and did the same step but when I ran the website, and hit "Alt+m" the Google help menu appear. I changed the AccessKey to "x" and when the website is running, I hit "Alt+x" but nothing happens. Do I need to set something else or missing steps.

    Here is the step I did as the article "Adding Keyboard Support to C1Menu"

    Adding Keyboard Support to C1Menu

    In this lesson you will learn how easy it is to add an access key to the C1Menu. Access keys are used for navigating the entire user interface and typically use the ALT key plus the specified access key.

    Adding keyboard support to your menu

    To add keyboard support to C1Menu, complete the following:

    1.   Select C1Menu1 in the C1Menu Designer Form and enter, "m", for the AccessKey property.

    2.   Build the project.

    3.   Press "alt+m" keys on your keyboard to bring the menu to focus. Use the arrow keys to navigate through the menu and menu items. Press the ENTER key to open a link in the menu item. For example, pressing ENTER for Menu Item 1 opens the Web Site.

  • Replied 10 September 2017, 11:35 am EST

    I checked and found out that the AccessKey property only works for normal C1Menu, not context menu. Do you know how to apply that to Context menu also.

  • Replied 10 September 2017, 11:35 am EST

    The C1Menu's AccessKey property works event when it is set as Context Menu.  Please refer to the attached sample 'Sample_AccessKey' for the implementation.

    Could you please check your application with the latest C1WebUI build available at the following url :

    Please upload your sample if the problem persists.

Need extra support?

Upgrade your support plan and get personal unlimited phone support with our customer engagement team

Learn More

Forum Channels