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
910
'Enter' keys should bring in ComboboxTool same behaviour like pressing 'Esc'
posted

When you open a dropdownlist of a comboboxtool you can navigate by 'up' and 'down' through list.

If you press 'esc' the dropdown will close with the current 'selected' item.

We want to have the same behviour if you press the 'Enter' (13) keys.

First try: Attaching to KeyDown, but how to get to the 'selected' item, how to close the dropdown? Other ways?

Thanks,
Michael 

Parents
  • 6120
    Verified Answer
    Offline posted

    Hi Michael, 

    We are able to reproduce this issue. I have logged this issue in our internal tracking system with Development ID of 212028. You can view the status of the development issue connected to this case by selecting the "Development Issues" tab when viewing it in the web site.

    As a work around for this specific scenario where you hit Enter Key after you navigate using Up and Down arrow keys, to be able to select the active item from drop down list, you can do something like below.

    private void ultraToolbarsManager1_ToolKeyDown(object sender, ToolKeyEventArgs e)
            {
               if(e.KeyData==Keys.Enter)
                {
                    ((ComboBoxTool)ultraToolbarsManager1.Tools[0]).IsInEditMode = false;             
                }
            }

    Please let me know if you need any other information. 

    Sincerely,
    Sahaja Kokkalagadda
    Associate Software Developer, Windows Forms
    http://ko.infragistics.com/

Reply Children