Quantcast
Channel: SmartClient Forums
Viewing all articles
Browse latest Browse all 4756

Hot key not work on submenu

$
0
0
Hi,

We observe an issue that the hot key doesn't work on sub menus if we remove some menu prior to the menu with the hot key.

This issue can be reproduce on SmartClient_v83p_2015-05-05_PowerEdition with IE9 and FF12.

Please check the following standalone:

Steps to reproduce:

1. Click the top-level menu to show submenus.
2. Press Shift+Z, the hotkey works and warn message 'one' is shown.
3. Press Shift+M, the hotkey doesn't work and warn message 'Four' is not shown.
4. If we comment the last line of the code, hotkey "Shift+M" works fine.

Thanks,
Robin

Code:

isc.MenuButton.create({ID:"MenuItem3",title:"Testing Menu",labelVar:"Testing Menu",menu:isc.Menu.create({ID:"MenuItem3$menu",data:
[{title:"SayZero",click:"isc.warn('Four')"},
{keys:{keyName:"Z",shiftKey:true,ctrlKey:false,altKey:false},title:"SayOne",click: "isc.warn('One')"},
{title:"SayTwo",click:"isc.warn('Two')"},
{title:"SayThree",click:"isc.warn('Three')"},
{keys:{keyName:"M",shiftKey:true,ctrlKey:false,altKey:false},title:"SayFour",click:"isc.warn('Four')"},
]})})

MenuItem3.menu.removeData(MenuItem3.menu.data[2]);


Viewing all articles
Browse latest Browse all 4756