I am looking to get the key of the menu item which was clicked in a list of contextmenu's, does anyone know how, this is how I create the context menu:
for(var i=0; i<10; i++) {
appAPI.contextMenu.add("key_" + i, 'Test', function (data) {
console.log('clicked with key: ', data);
}, ["all"]);
}