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
1745
Need keyboard access to a ComboBoxTool on Toolbar
posted

We are currently trying to certify our product for Section 508 compliance.

This requires that all features can be accessed via the keyboard alone.

We currently have a ComboBoxTool on one of our toolbars - but NOT on a menu.

I can use Alt to navigate to/through the menus but I do not see any way to get the focus to a toolbar so that I can navigate to the ComboBox tool and use F4 to drop it down.

I can add it to a menu, but I dont want to do that if I can avoid it.
Then I can navigate to it using Alt followed by the arrow keys. Once I'm at the correct menu item Enter locks focus onto the ComboBox so that Up/Down arrows will scroll through the list entries, or F4 will drop down the list. 

Is there a way to get the focus to a ComboBoxTool on a toolbar?

(I tried the way Microsoft does it in Office - it does not work - strange since you seem to have duplicated everything else from the Office customizable toolbars.j)

Thanks
Mike

  • 40
    Suggested Answer
    posted

    Hello Mike,

    I think you want to call 

    If ComboBoxTool.CanActivate Then ComboBoxTool.IsInEditMode = True

    See the sample for IsInEditMode for more info.

    NB: You will need to do this against the instance of the tool, i.e. UltraToolbarsManager.Toolbars("TOOLBAR_NAME").Tools("ComboBoxTool"), rather than just UltraToolbarsManager.Tools("ComboBoxTools").