I have below code to execute the shortcut key but doesn’t work.
frappe.ui.keys.add_shortcut({
description: "Open new issue",
shortcut: 'ctrl+alt+n',
action: () => {
frappe.new_doc("Issue");
}
});
I have below code to execute the shortcut key but doesn’t work.
frappe.ui.keys.add_shortcut({
description: "Open new issue",
shortcut: 'ctrl+alt+n',
action: () => {
frappe.new_doc("Issue");
}
});
Hi @Prasant_Pant,
Please check the whole file.
[EDIT]
Please try it.
frappe.ui.keys.add_shortcut({
shortcut: "alt+ctrl+n",
action: function () {
frappe.new_doc("Issue");
},
description: __("Open new issue"),
});
I hope this helps.
Thank You!
Thanks man!!