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
Hallo Mike;
important is to set the parameter
m_UltraWebMenu.EnhancedRendering =
true;
than is the igmenu_keyboardWith508Support also available.
Thanks,
Aleks
Hello Aleks,
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.
Sincerely,Mike P.Developer Support EngineerInfragistics, Inc.www.infragistics.com
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.
File : \Infragistics\Scripts\ig_webmenux.js
find the event code : this.itemKeydown = function(evnt) {
itemKeydown used twice in ig_webmenux.js
second found result, you can add new code for <Enter key> navigation
case 13 : // enter keyvar oChildItem = oItem.getFirstChild(); if (oChildItem) _this.showAndActivateSubMenu(oItem); else igmenu_ExecuteItem(); break;
add above code next to below condition
switch(evnt.keyCode) { case 32 : // space
case 13 :..........<Enter Key>
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