how to How to perform the selected context menu item click action when enter key pressed

I want to perform the same action when I chose the menu item from the context menu and click (or) when I highlight any one of the menu item in context menu and click on “enter” key . Can anyone guide me how can I achieve this…

you can define a global “enter” hotkey, and from hotkey handler use

http://docs.webix.com/api__uimanager_addhotkey.html

var view = $$(event);
if (view.name == "contextmenu")
    var id = view.locate(event);