Form Menu Accelerator Key question - submenu does not drop down
Posted: 1 Jul 2017 15:36
I created a menu and attached it to a form using the form's Property Editor in the IDE. Also I created MenuItemListener code to handle the menu event.
Everything works as expected, except the way the form's Menu behaves.
The submenu drops down normally on a mouse click, but it doesn't drop down when accessing the menu using the Alt-<somekey> or the assigned Accelerator key.
When I test the Form's menu in the IDE editor, the Alt-<somekey> causes the the submenu to show as expected.
Do I need to write custom code to handle the accelerators for form menus?
Code: Select all
predicates
onMenuItem : window::menuItemListener.
clauses
onMenuItem( Source, resourceIdentifiers::id_chart_modify_properties ):-
Chart = chart::getChart( class_name() ),
_ = chartPropertyEditor::display( Source, Chart ),
!.
onMenuItem(_,_).
The submenu drops down normally on a mouse click, but it doesn't drop down when accessing the menu using the Alt-<somekey> or the assigned Accelerator key.
When I test the Form's menu in the IDE editor, the Alt-<somekey> causes the the submenu to show as expected.
Do I need to write custom code to handle the accelerators for form menus?