feat: Add print shortcut

This commit is contained in:
14987 2023-09-19 15:14:51 +05:30
parent c4afd035e8
commit b7e35e558e
No known key found for this signature in database
GPG key ID: ED4A241EAB170273

View file

@ -176,6 +176,11 @@ frappe.ui.form.Form = class FrappeForm {
page: this.page,
description: __("Redo last action"),
});
frappe.ui.keys.add_shortcut({
shortcut: "ctrl+p",
action: () => this.print_doc(),
description: __("Print document"),
});
let grid_shortcut_keys = [
{