In our product we use the UltraWebMenu control for all menu items available. We now have the requirement that out product is Section 508 compliant, which means the user must be able to work with our product with the keyboard only.
We override the MenuClientSideEvents.ItemClick event to execute our own JavaScript. But this event is only executed when either clicking the item with the mouse or pressing the <SPACE> key. But to have a common behavior all over the application the menu items must also be executable with the <ENTER> key
Is there any solution to configure the UltraWebMenu to execute the ItemClick event also when pressing the <ENTER> key?
Any help appreciated,
Jörg
Hello Jörg,
I have done some research into this matter. I have been unable to find a way to change the button that fires and event from <SPACE> to <ENTER>. I will continue to look into this matter and give you a progress update by the end of the day tomorrow.
Sincerely,Mike P.Developer Support EngineerInfragistics, Inc.www.infragistics.com
I have done some further research into this matter. It seems currently the UltraWebMenu is unable to have the Enter key set as the trigger of the ItemClick event. I have discussed this matter with my team lead and it seems it may be possible to replace this event with a new one that will be able to be fired on the press of the Enter Key. I am going to work on creating a sample to demonstrate this behavior. I will give you a progress update by tomorrow.
I have attached a sample that demonstrates how you can have the UltraWebMenu fire when the Enter key is pressed. In the sample the itemKeydown is caught we then check the keycode for the enter key and change it to the space to fire the event. Then the event that we caught is evoked. To see this behavior expand the menu then hit enter.
Please let me know if you have any questions concerning this matter.
Hello Mike,
thanks for the sample - this work fine but in our code we get an error regarding the
var d = igmenu_keyboardWith508Support;
I implemented your JScript to add the 'Enter' click but following JScript exception occurs -> Microsoft JScript runtime error: 'igmenu_keyboardWith508Support' is undefined. Our onkeyup event is defined to 'igmenu_kbNav(oItem,evt). We use the Infragistics35 Version= 11.1.20111.2064
Do you mean that it is a version issue? - your sample is based on infragistics4.
Thanks in advance
Aleks
Hello Aleks,
Thank you for the update. I have modified my sample to use Infragistics 3.5 and Version 11.1.20111.2064 and the sample still operates properly. Can you please provide the markup for your WebMenu that is experiencing this issue? I am attaching my sample with the modification.
I am following up to see if this matter has been resolved. If this isn’t the case please provide me with your markup for your WebMenu. If you don’t want to post your code on the forums I can create a private case for this matter.
Please let me know if I may be of further assistance with this matter.
Hallo Mike;
important is to set the parameter
m_UltraWebMenu.EnhancedRendering =
true;
than is the igmenu_keyboardWith508Support also available.
Thanks,