Is it possible to define the hotkey when using api method?
I stuck the examples below in the first 3 items.
var menuData =
{
parent: "parentId",
icon_path: "../Common/imgs/menu/",
onClick: "onClickHandler",
items:
[
{id: "mm_file", text: "File", items:[
{id: "mm_new", text: "New", [b]hotkey: "Alt+N"[/b], img: "new.png"},
{id: "sep0", type: "separator"},
{id: "mm_open", text: "Open", [b]hotkey: "Alt+O",[/b] img: "open.png"},
{id: "mm_save", text: "Save", [b]hotkey: "Alt+S",[/b] img: "save.png"},
{id: "mm_saveAs", text: "Save As...", disabled: true, img_disabled: "save_as_dis.png"},
{id: "sep1", type: "separator"},
{id: "mm_print", text: "Print", img: "print.png"},
{id: "mm_pageSetup", text: "Page Setup", disabled: true, img_disabled: "page_setup_dis.png"},
{id: "sep2", type: "separator"},
{id: "mm_exit", text: "Exit", img: "exit.png"}
]},
{id: "mm_edit", text: "Edit", items:[
{id: "mm_edit_undo", text: "Undo", img: "undo.png"},
{id: "mm_edit_redo", text: "Redo", img: "redo.png"},
{id: "sep3", type: "separator"},
{id: "mm_edit_select_all", text: "Select All", img: "select_all.png"},
{id: "sep4", type: "separator"},
{id: "mm_edit_cut", text: "Cut", img: "cut.png"},
{id: "mm_edit_copy", text: "Copy",img: "copy.png"},
{id: "mm_edit_paste", text: "Paste", img: "paste.png"}
]},
{id: "mm_help", text: "Help", items:[
{id: "mm_about", text: "About...", img: "about.png"},
{id: "mm_help2", text: "Help", img: "help.png"},
{id: "mm_bugrep", text: "Bug Reporting", img: "bug_reporting.png"}
]}
]
};