How to open new issue form using shortcut key?

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!

1 Like

Thanks man!!

This also may help Custom keyboard shortcuts - #2 by TurkerTunali

2 Likes