Merge pull request #22471 from niraj2477/add-print-shortcut

This commit is contained in:
Suraj Shetty 2023-09-19 16:16:45 +05:30 committed by GitHub
commit 004789b599
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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 = [
{